getOpenEditionIntent

abstract fun getOpenEditionIntent(edition: Edition, onIntentReady: (Intent?, OpenError?) -> Unit)

Use this method to get an Intent to present an edition for reading to the user.

The method is async, and onIntentReady will be called once the Intent is ready to be used. The edition must be previously downloaded (see downloadEdition or this method will fail with OpenError.EDITION_NOT_DOWNLOADED. If the Edition is stale for some reason and it is not found then the method will fail with OpenError.EDITION_NOT_FOUND.

The issue will be opened to the cover page if it is the first time it has been opened or to the last page seen by the user if it is being reopened.


abstract fun getOpenEditionIntent(edition: Edition, page: Int, onIntentReady: (Intent?, OpenError?) -> Unit)

Same as the method above but you can specify the page the edition will be opened at. 1 represents the cover page.