-
- All Implemented Interfaces:
-
com.google.android.gms.cast.framework.OptionsProvider
public class DefaultOptionsProvider implements OptionsProvider
This class configures three key components of the Google Cast: The Cast Receiver App Id, the Expanded Controller Activity and the Notification Target Activity. By Default, only the Cast Receiver App Id is set, which is under the strings.xml file with the key cast_receiver_app_id. You can replace this id by overriding the same key in your strings.xmk file. You need to set the ExpandedControllerActivity through the AndroidManifest as meta-data as shown below:
{@code * }
In the same way, you can set the Notification Target Activity, for example:{@code * }
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
TAG
public final static String
EXPANDED_CONTROLLER_ACTIVITY_CLASS_NAME
public final static String
NOTIFICATION_TARGET_ACTIVITY_CLASS_NAME
-
Method Summary
Modifier and Type Method Description CastOptions
getCastOptions(Context context)
List<SessionProvider>
getAdditionalSessionProviders(Context context)
-
-
Method Detail
-
getCastOptions
CastOptions getCastOptions(Context context)
-
getAdditionalSessionProviders
List<SessionProvider> getAdditionalSessionProviders(Context context)
-
-
-
-