Skip to content

//readium-shared/org.readium.r2.shared.publication/Publication/Service/Context/Context

Context

[androidJvm]\ fun Context(publication: Ref<Publication>, manifest: Manifest, fetcher: Fetcher, services: PublicationServicesHolder)

Parameters

androidJvm

publication Reference to the parent publication. Don't store directly the referenced publication, always access it through the Ref property. The publication won't be set when the service is created or when calling Service.links, but you can use it during regular service operations. If you need to initialize your service differently depending on the publication, use manifest.