CastReceiverOptions.Builder

public static classCastReceiverOptions.BuilderextendsObject

Builder forCastReceiverOptions.

Public Constructor Summary

Builder(Context context)
Creates an instance of CastReceiverOptions.Builder.

Public Method Summary

CastReceiverOptions
build()
Builds aCastReceiverOptions object with the provided options.
CastReceiverOptions.Builder
setCustomNamespaces(List<String> namespaces)
Sets the list of custom namespaces.
CastReceiverOptions.Builder
setLaunchRequestChecker(CastReceiverOptions.LaunchRequestChecker checker)
Sets the callback to check if a launch request is supported.
CastReceiverOptions.Builder
setStatusText(StringstatusText)
Sets the status text.
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.