//readium-shared/org.readium.r2.shared.publication/Publication/Service
Service¶
[androidJvm]\ interface Service : Closeable
Base interface to be implemented by all publication services.
Types¶
Name | Summary |
---|---|
Context | [androidJvm] class Context(val publication: Ref<Publication>, val manifest: Manifest, val fetcher: Fetcher, val services: PublicationServicesHolder) Container for the context from which a service is created. |
Functions¶
Name | Summary |
---|---|
close | [androidJvm] open override fun close() Closes any opened file handles, removes temporary files, etc. |
get | [androidJvm] open fun get(link: Link): Resource? A service can return a Resource to: |
Properties¶
Name | Summary |
---|---|
links | [androidJvm] open val links: List<Link> Links which will be added to Publication.links. It can be used to expose a web API for the service, through Publication.get. |
Inheritors¶
Name |
---|
CacheService |
ContentProtectionService |
CoverService |
LocatorService |
PositionsService |
ContentService |
SearchService |