Cache API
-
The caching API allows to store a streaming source on the user’s device.
See moreDeclaration
Swift
public protocol Cache : AnyObject, EventDispatcherProtocol -
Represents a caching task.
See moreDeclaration
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.
Declaration
Swift
public enum CachingTaskStatus : Int -
The configuration of a caching task.
See moreDeclaration
Swift
public class CachingParameters : NSObject, Codable -
The caching task license controller which can be used to renew the license.
See moreDeclaration
Swift
public protocol CachingTaskLicense -
Declaration
Swift
public class CachingParametersTrackSelection : NSObject, Codable -
The reason behind IDLE status change.
CacheStatusIdleReason.notStarted: The task has been created, but has not started yet.CacheStatusIdleReason.paused: The task is manually paused.CacheStatusIdleReason.lostNetwork: The task is paused due to lost network connection.
Declaration
Swift
public enum CacheStatusIdleReason : Int
Cache API Reference