public static classCastReceiverOptions.BuilderextendsObject
Builder forCastReceiverOptions
.
Public Constructor Summary
Public Method Summary
CastReceiverOptions |
build()
Builds a
CastReceiverOptions
object with the provided options.
|
CastReceiverOptions.Builder | |
CastReceiverOptions.Builder |
setLaunchRequestChecker(CastReceiverOptions.LaunchRequestChecker
checker)
Sets the callback to check if a launch request is supported.
|
CastReceiverOptions.Builder | |
CastReceiverOptions.Builder |
setVersionCode(int versionCode)
Sets the version code of the receiver app.
|
Inherited Method Summary
Public Constructors
publicBuilder(Context context)
Creates an instance ofCastReceiverOptions.Builder
.
Public Methods
publicCastReceiverOptions build()
Builds aCastReceiverOptions
object with the provided options.
publicCastReceiverOptions.Builder setCustomNamespaces(List<String> namespaces)
Sets the list of custom namespaces.
publicCastReceiverOptions.Builder setLaunchRequestChecker(CastReceiverOptions.LaunchRequestChecker checker)
Sets the callback to check if a launch request is supported. The default callback
will always returntrue
.
publicCastReceiverOptions.Builder setStatusText(String statusText)
Sets the status text.
publicCastReceiverOptions.Builder setVersionCode(int versionCode)
Sets the version code of the receiver app.