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 nil if there is nothing to show.

    Declaration

    Swift

    @MainActor
    func bookCoverOverlay(_ bookId: String, context: BookCoverContext) -> (title: String, description: String)?

    Parameters

    bookId

    ID of the book for which to provide descriptions.

    context

    the context where the book is shown.