CastReceiverOptions
Stay organized with collections
Save and categorize content based on your preferences.
Options of Cast ATV receiver library.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
public List<String>
getCustomNamespaces ()
Returns the list of custom namespaces.
Returns the callback to check if a launch request is supported.
public String getStatusText ()
public int getVersionCode ()
Returns the version code of the receiver app.
public void writeToParcel (Parcel out, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eNotificationOptions\u003c/code\u003e allows configuration of media notifications for Cast using a builder pattern.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to set various notification elements like actions, icons, and skip intervals.\u003c/p\u003e\n"],["\u003cp\u003eDefault icons and skip steps are available but can be overridden with custom resources.\u003c/p\u003e\n"],["\u003cp\u003eThe notification can launch a target \u003ccode\u003eActivity\u003c/code\u003e when tapped by the user, which is configurable.\u003c/p\u003e\n"],["\u003cp\u003eTwo constants \u003ccode\u003eSKIP_STEP_TEN_SECONDS_IN_MS\u003c/code\u003e and \u003ccode\u003eSKIP_STEP_THIRTY_SECONDS_IN_MS\u003c/code\u003e are predefined for convenience.\u003c/p\u003e\n"]]],[],null,["# CastReceiverOptions\n\npublic class **CastReceiverOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \nOptions of Cast ATV receiver library. \n\n### Nested Class Summary\n\n|-----------|---|---|-----------------------------------------------------------------------------------------------------------|\n| class | [CastReceiverOptions.Builder](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions.Builder) || Builder for [CastReceiverOptions](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions). |\n| interface | [CastReceiverOptions.LaunchRequestChecker](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions.LaunchRequestChecker) || Interface for checking if a launch request is supported. |\n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[String](//developer.android.com/reference/java/lang/String.html)\\\u003e | [getCustomNamespaces](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions#getCustomNamespaces())() Returns the list of custom namespaces. |\n| [CastReceiverOptions.LaunchRequestChecker](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions.LaunchRequestChecker) | [getLaunchRequestChecker](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions#getLaunchRequestChecker())() Returns the callback to check if a launch request is supported. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getStatusText](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions#getStatusText())() Returns the status text. |\n| int | [getVersionCode](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions#getVersionCode())() Returns the version code of the receiver app. |\n| void | [writeToParcel](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) out, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nPublic Methods\n--------------\n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[String](//developer.android.com/reference/java/lang/String.html)\\\u003e\n**getCustomNamespaces** ()\n\nReturns the list of custom namespaces. \n\n#### public [CastReceiverOptions.LaunchRequestChecker](/android/reference/com/google/android/gms/cast/tv/CastReceiverOptions.LaunchRequestChecker) **getLaunchRequestChecker** ()\n\nReturns the callback to check if a launch request is supported. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getStatusText** ()\n\nReturns the status text. \n\n#### public int **getVersionCode** ()\n\nReturns the version code of the receiver app. \n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) out, int flags)"]]