public class

PrecacheManager

extends Object
java.lang.Object
   ↳ com.google.android.gms.cast.framework.PrecacheManager

Class Overview

The entry point of pre-cache APIs. Developers can get the instance of this class by calling getPrecacheManager().

Summary

Public Methods
void precache(String data)
Pre-caches the content that users intend to consume in order to reduce the loading time at playback.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void precache (String data)

Pre-caches the content that users intend to consume in order to reduce the loading time at playback. If using this API, devlopers must implement their own precache logic on the receiver side by implementing an onPrecache() method.

For how to handle the data received in the receiver app, please see https://developers.google.com/cast/docs/reference/receiver/cast.receiver.MediaManager#onPrecache

Parameters
data String: A String that will be sent to the receiver app to specify which content should be pre-cached.