editions
fun editions(tokenProvider: TokenProvider, analyticsListener: AnalyticsListener? = null, configuration: EditionsConfiguration = EditionsConfiguration(), completion: (Editions?) -> Unit)
Creates and initializes an Editions instance, or provides the existing instance if one has already been created. Note that this method handles calling Editions.initialize too.
The return value of completion is null
if start hasn't been called or if creating the instance fails for any reason, e.g. a network issue.
This method also creates an AdManager instance, so you only need to call ads if you need an instance.
suspend fun editions(tokenProvider: TokenProvider, analyticsListener: AnalyticsListener? = null, configuration: EditionsConfiguration = EditionsConfiguration()): Editions
Creates and initializes an Editions instance, or provides the existing instance if one has already been created. Note that this method handles calling Editions.initialize too.
This method also creates an AdManager instance, so you only need to call ads if you need an instance.