Cache API

  • The caching API allows to store a streaming source on the user’s device.

    See more

    Declaration

    Swift

    public protocol Cache : EventDispatcherProtocol
  • Indicates the status of the Cache.

    Remark

    • CacheStatus.uninitialised: means that previously persisted tasks are not yet available.
    • CacheStatus.initialised: means that previously persisted tasks are available in the tasks property.
    See more

    Declaration

    Swift

    @objc(THEOplayerCacheStatus)
    public enum CacheStatus : Int
  • Represents a caching task.

    See more

    Declaration

    Swift

    public protocol CachingTask : EventDispatcherProtocol
  • The status of a caching task.

    • CachingTaskStatus.idle: The task has been created, but has not started downloading content.
    • CachingTaskStatus.loading: The task is currently downloading the content.
    • CachingTaskStatus.done: The task has finished downloading all content.
    • CachingTaskStatus.error: The task has encountered an error while downloading or evicting content.
    • CachingTaskStatus.evicted: All data associated with the task has been removed because the task expired or the user invoked the remove method.
    See more

    Declaration

    Swift

    @objc(THEOplayerCachingTaskStatus)
    public enum CachingTaskStatus : Int
  • The configuration of a caching task.

    See more

    Declaration

    Swift

    @objc(THEOplayerCachingParameters)
    public class CachingParameters : NSObject, Codable
  • The caching task license controller which can be used to renew the license.

    See more

    Declaration

    Swift

    public protocol CachingTaskLicense