Cache_Objc
@objc(THEOplayerCache)
public protocol Cache_ObjcThe caching API allows to store a streaming source on the user’s device.
- 
                  
                  Indicates the CacheStatus.DeclarationSwift var status: CacheStatus { get }
- 
                  
                  The list of all caching tasks. Remark The list should be regarded as read-only. To remove a task, invokeCachingTask.remove().DeclarationSwift @objc(tasks) var tasks_Objc: [CachingTask_Objc] { get }
- 
                  
                  Creates a CachingTaskwhich will be used to cache the provided source, abiding to the provided parameters.DeclarationSwift @discardableResult @objc(createTaskWithSource:parameters:) func createTask_Objc(source: SourceDescription, parameters: CachingParameters?) -> CachingTask_Objc?ParameterssourceThe source to be cached. parametersThe optional caching parameters. Return ValueThe created CachingTask.
- 
                  
                  Adds the event listener of the given EventType.Remark When attaching a listener on the wrong object the application will crash. DeclarationSwift @discardableResult func addEventListener(type: String, listener: @escaping (CacheEvent) -> ()) -> EventListenerParameterstypeEventTypeof the added event listener. SeeCacheEventTypesfor possible values.listenerClosure called when event is dispatched. Return ValueThe newly added EventListener.
- 
                  
                  Removes the event listener for the given EventType.DeclarationSwift func removeEventListener(type: String, listener: EventListener)ParameterstypeEventTypeof the event listener to be removed. SeeCacheEventTypesfor possible values.listenerEventListenerwhich was added byaddEventListener(...).
 Cache_Objc Protocol Reference
      Cache_Objc Protocol Reference