AI-generated Key Takeaways
-
LaunchOptions.Builder is used to construct LaunchOptions objects.
-
It offers constructors for creating a new builder or copying an existing LaunchOptions object.
-
The builder provides methods to set properties like Android receiver compatibility, credentials data, locale, and the relaunch if running flag.
-
The build method finalizes and returns the configured LaunchOptions object.
A builder for LaunchOptions
objects.
Public Constructor Summary
|
Builder()
Constructs a new
LaunchOptions.Builder.
|
|
|
Builder(LaunchOptions
copy)
Constructs a new
LaunchOptions.Builder
by making a copy of a give LaunchOptions.
|
Public Method Summary
| LaunchOptions |
build()
Builds and returns the
LaunchOptions
object.
|
| LaunchOptions.Builder |
setAndroidReceiverCompatible(boolean androidReceiverCompatible)
Sets
true if the sender app supports casting to an Android TV app.
|
| LaunchOptions.Builder | |
| LaunchOptions.Builder | |
| LaunchOptions.Builder |
setRelaunchIfRunning(boolean relaunchIfRunning)
Sets the "relaunch if running" flag.
|
Inherited Method Summary
Public Constructors
public Builder ()
Constructs a new LaunchOptions.Builder.
public Builder (LaunchOptions copy)
Constructs a new LaunchOptions.Builder
by making a copy of a give LaunchOptions.
Public Methods
public LaunchOptions build ()
Builds and returns the LaunchOptions
object.
public LaunchOptions.Builder setAndroidReceiverCompatible (boolean androidReceiverCompatible)
Sets true if the sender app supports casting to an Android TV app.
public LaunchOptions.Builder setCredentialsData (CredentialsData credentialsData)
Sets the credentials data.
public LaunchOptions.Builder setLocale (Locale locale)
Sets the desired application locale.
public LaunchOptions.Builder setRelaunchIfRunning (boolean relaunchIfRunning)
Sets the "relaunch if running" flag.