Editions

class Editions(appId: String, tokenProvider: TokenProvider, analyticsListener: AnalyticsListener?, context: Context, adManager: AdManager?, configuration: EditionsConfiguration = EditionsConfiguration(), appdataNetworking: AppdataNetworking? = null)

Main class of Richie Editions SDK.

If an AdManager instance is not supplied, it will be created internally, or an existing one will be reused if one is available.

Important: currently, only one instance of Editions may be created during the lifetime of the hosting application. This may change in the future.

Constructors

Link copied to clipboard
constructor(appId: String, tokenProvider: TokenProvider, analyticsListener: AnalyticsListener?, context: Context, adManager: AdManager?, configuration: EditionsConfiguration = EditionsConfiguration(), appdataNetworking: AppdataNetworking? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Use editionPresenter to download and present editions, see EditionPresenter.

Link copied to clipboard

Use editionProvider to access to editions, see EditionProvider.

Functions

Link copied to clipboard
fun initialize(completion: (success: Boolean) -> Unit)

Method that initializes the SDK.

Link copied to clipboard

Use this method to update the configuration of Editions, using an EditionsConfiguration.

Link copied to clipboard
fun updateFeed(completion: (success: Boolean) -> Unit)

Method that updates the editions available through the SDK.

Link copied to clipboard
fun updateTokenProvider(tokenProvider: TokenProvider)

Update the token provider used by Editions.