BookCoverOverlayProvider
public protocol BookCoverOverlayProvider
A protocol to be implemented by the host application for providing optional descriptions to the book covers shown in book lists etc.
-
Called per book in lists and elsewhere. Return
nilif there is nothing to show.Declaration
Swift
@MainActor func bookCoverOverlay(_ bookId: String, context: BookCoverContext) -> (title: String, description: String)?Parameters
bookIdID of the book for which to provide descriptions.
contextthe context where the book is shown.