React Native THEOplayer SDK
    Preparing search index...

    Interface MediaCacheAPI

    The media cache API.

    interface MediaCacheAPI {
        status: CacheStatus;
        tasks: CachingTaskList;
        addEventListener<TType extends keyof CacheEventMap>(
            type: TType | readonly TType[],
            listener: EventListener<CacheEventMap[TType]>,
        ): void;
        createTask(
            source: SourceDescription,
            parameters: CachingTaskParameters,
        ): Promise<CachingTask>;
        removeEventListener<TType extends keyof CacheEventMap>(
            type: TType | readonly TType[],
            listener: EventListener<CacheEventMap[TType]>,
        ): void;
    }

    Hierarchy (View Summary)

    Index
    status: CacheStatus

    The current status of the cache.

    List of caching tasks which control the caching of media.