BooksLoginPresenter
public protocol BooksLoginPresenter
A protocol to be implemented by the host application for presenting a login or paywall view when the books library cannot proceed because the user is not authenticated or not entitled.
-
presentLogin(from:Asynchronous) Implementation should present a login/paywall view from
presentingViewControllerand returntrueif the user successfully authenticated (or completed a purchase) before dismissing the view, orfalseotherwise. The books library uses the return value to decide whether to automatically retry the action that triggered the login.Declaration
Swift
@MainActor func presentLogin(from presentingViewController: UIViewController) async -> Bool