TokenRequestTrigger

Description of the context in which the token was requested.

Entries

Link copied to clipboard

The user is downloading or opening a book.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

The SDK is performing a reading list sync.

Link copied to clipboard

The reading position sync service is being called.

Link copied to clipboard

The SDK is performing a book completion sync.

Link copied to clipboard

The user is downloading an edition.

Link copied to clipboard

The SDK is fetching customer recommendations.

Link copied to clipboard

The SDK is performing playlist operations.

Link copied to clipboard

The SDK wants to play or manage protected audio. You should not show a login screen in response to this.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.