TokenRequestTrigger
Description of the context in which the token was requested.
Entries
The user is downloading or opening a book.
The user wants to post a new rating. This trigger occurs when the user taps on the rating button. If the host app cannot provide a token, it may want to show a login UI or a warning dialog.
The SDK is executing a ratings sync and wants to fetch ratings given by the current user. This trigger occurs on the SDK's discretion. If the host app cannot provide a token, it should return null
in order to skip the fetching of user-specific ratings. Ratings sync will be restarted by the SDK once user's login state will change.
The SDK is performing a reading list sync.
The reading position sync service is being called.
The SDK is performing a book completion sync.
The user is downloading an edition.
The SDK is fetching customer recommendations.
The SDK wants to play or manage protected audio. You should not show a login screen in response to this.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.