BookOpening

interface BookOpening

Callbacks for when a book will open and has been opened.

Functions

Link copied to clipboard
abstract fun onDidOpenBook(book: Book, mediaType: BookType)

Called when a book has been opened.

Link copied to clipboard
abstract fun onWillOpenBook(book: Book, currentPolicy: BookOpeningPolicy, callback: (policy: BookOpeningPolicy) -> Unit)

Called by the SDK before opening a book. At this point, the book has been already downloaded & decrypted successfully and is available for opening.