Editions

class Editions

Main class of Richie Editions SDK.

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?, application: Application, configuration: EditionsConfiguration = EditionsConfiguration(maxZoomFactor = 1.0f), appdataNetworking: AppdataNetworking? = null)

Main constructor, this is the basic constructor to use for getting an Editions instance.

constructor(appId: String, tokenProvider: TokenProvider, analyticsListener: AnalyticsListener?, context: Context, adManager: AdManager, configuration: EditionsConfiguration = EditionsConfiguration(maxZoomFactor = 1.0f), appdataNetworking: AppdataNetworking? = null)

Use this constructor if you already have an AdManager instance.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Use editionCoverProvider to get the cover for editions, see EditionCoverProvider.

Link copied to clipboard

Use editionPresenter to download and present editions, see EditionPresenter.

Link copied to clipboard
Link copied to clipboard

Use editionProvider to access to editions, see EditionProvider.

Link copied to clipboard

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.