Cache

  • 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

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

    Declaration

    Swift

    public enum CacheStatus : String
  • The CachingTask has the following properties:

    See more

    Declaration

    Swift

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

    • idle means that the task has been created, but has not started downloading content.
    • loading means that the task is currently downloading the content
    • done means that the task has finished downloading all content
    • error means that the task has encountered an error while downloading or evicting content
    • evicted means that 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 : String
  • A CachingParameters object has the following properties:

    See more

    Declaration

    Swift

    public struct CachingParameters
  • Fires to indicate that the status of the cache has been changed.

    Declaration

    Swift

    public class CacheStateChangeEvent : CacheEvent
  • Fires to indicate that the status of the caching task has been changed

    Declaration

    Swift

    public class CachingTaskStateChangeEvent : CacheEvent
  • Fires to indicate that segments associated to the task have been added to the cache.

    Declaration

    Swift

    public class CachingTaskProgressEvent : CacheEvent