LaunchOptions.Builder | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static final class

# LaunchOptions.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.cast.LaunchOptions.Builder

## Class Overview

A builder for `LaunchOptions` objects.

## Summary

Public Constructors
| LaunchOptions.Builder() Constructs a new `LaunchOptions.Builder`.

Public Methods
LaunchOptions | build() Builds and returns the `LaunchOptions` object.
LaunchOptions.Builder | setLocale(Locale locale) Sets the desired application locale.
LaunchOptions.Builder | setRelaunchIfRunning(boolean relaunchIfRunning) Sets the "relaunch if running" flag.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Public Constructors

#### public LaunchOptions.Builder ()

Constructs a new `LaunchOptions.Builder`.

## Public Methods

#### public LaunchOptions build ()

Builds and returns the `LaunchOptions` object.

#### public LaunchOptions.Builder setLocale (Locale locale)

Sets the desired application locale.

#### public LaunchOptions.Builder setRelaunchIfRunning (boolean relaunchIfRunning)

Sets the "relaunch if running" flag.