# GCKLaunchOptions Class

[Instance Methods](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#pub-methods) \| [Properties](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#properties) GCKLaunchOptions Class Reference

## Overview

Receiver application launch options.

Inherits NSObject, \<NSCopying\>, and \<NSCoding\>.

|---|---|
| ## Instance Method Summary ||
| (instancetype) | - [init](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#a517758eee4ced6050e6c1828f2dd99ff) |
|   | Initializes the object with default values. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#a517758eee4ced6050e6c1828f2dd99ff) |
|   ||
| (instancetype) | - [initWithRelaunchIfRunning:](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#aaffd323b75c8c8575cd11117c176878b) |
|   | Initializes the object with the sender device's language code and the specified relaunch behavior. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#aaffd323b75c8c8575cd11117c176878b) |
|   ||
| (instancetype) | - [initWithLanguageCode:relaunchIfRunning:](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#aeb3de5baa2a2bd9e822158b4b060281c) |
|   | Designated initializer. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#aeb3de5baa2a2bd9e822158b4b060281c) |
|   ||

|---|---|
| ## Property Summary ||
| NSString \* | [languageCode](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#a945553da0a01cb4bfd16ca587f21bc08) |
|   | The sender's language code as per RFC 5646. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#a945553da0a01cb4bfd16ca587f21bc08) |
|   ||
| BOOL | [relaunchIfRunning](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#a130bec9fa71e880bef4aec51be5dcf56) |
|   | A flag indicating whether the receiver application should be relaunched if it is already running. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_launch_options#a130bec9fa71e880bef4aec51be5dcf56) |
|   ||

## Method Detail

|---|---|---|---|
| - (instancetype) init |   |   |   |

Initializes the object with default values.

|---|---|---|---|---|
| - (instancetype) initWithRelaunchIfRunning: |   | (BOOL) | *relaunchIfRunning* |   |

Initializes the object with the sender device's language code and the specified relaunch behavior.

|---|---|---|---|
| - (instancetype) initWithLanguageCode: |   | (NSString \*__nullable) | *languageCode* |
| relaunchIfRunning: |   | (BOOL) | *relaunchIfRunning* |
|   |   |   |   |

Designated initializer.

Initializes the object with the specified language code and relaunch behavior.

Parameters
:

    |---|---|
    | languageCode | The language code as per RFC 5646. |
    | relaunchIfRunning | A flag indicating whether the receiver application should be relaunched if it is already running. |


## Property Detail

|---|---|
| |---| | - (NSString\*) languageCode | | readwritenonatomiccopy |

The sender's language code as per RFC 5646.

The default is the sender device's language.

|---|---|
| |---| | - (BOOL) relaunchIfRunning | | readwritenonatomicassign |

A flag indicating whether the receiver application should be relaunched if it is already running.

The default is `NO`.