GCKLaunchOptions Class

Stay organized with collections Save and categorize content based on your preferences.
GCKLaunchOptions Class Reference

Overview

Receiver application launch options.

Changes to this object must be made before passing it to the GCKCastContext.

Inherits NSObject, <NSCopying>, and <NSSecureCoding>.

Instance Method Summary

(instancetype) - init
 Initializes the object with default values. More...
 
(instancetype) - initWithRelaunchIfRunning:
 Initializes the object with the sender device's language code and the specified relaunch behavior. More...
 
(instancetype) - initWithLanguageCode:relaunchIfRunning:
 Initializes the object with the specified language code and relaunch behavior. More...
 
(instancetype) - initWithRelaunchIfRunning:androidReceiverCompatible:
 Initializes the object with the sender device's language code, the specified relaunch behavior and if the sender application supports Android TV application. More...
 
(instancetype) - initWithRelaunchIfRunning:languageCode:androidReceiverCompatible:
 Designated initializer. More...
 

Property Summary

NSString * languageCode
 The sender's language code as per RFC 5646. More...
 
BOOL relaunchIfRunning
 A flag indicating whether the receiver application should be relaunched if it is already running. More...
 
BOOL androidReceiverCompatible
 A flag indicating whether the sender application supports casting to an Android TV application. More...
 

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: (nullable NSString *)  languageCode
relaunchIfRunning: (BOOL)  relaunchIfRunning 

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

Parameters
languageCodeThe language code as per RFC 5646.
relaunchIfRunningA flag indicating whether the receiver application should be relaunched if it is already running.
- (instancetype) initWithRelaunchIfRunning: (BOOL)  relaunchIfRunning
androidReceiverCompatible: (BOOL)  androidReceiverCompatible 

Initializes the object with the sender device's language code, the specified relaunch behavior and if the sender application supports Android TV application.

Since
4.4.7
- (instancetype) initWithRelaunchIfRunning: (BOOL)  relaunchIfRunning
languageCode: (nullable NSString *)  languageCode
androidReceiverCompatible: (BOOL)  androidReceiverCompatible 

Designated initializer.

Initializes the object with the specified language code, relaunch behavior and support for Android TV application.

Parameters
relaunchIfRunningA flag indicating whether the receiver application should be relaunched
languageCodeThe language code as per RFC 5646.
androidReceiverCompatibleA flag indicating whether the sender application supports Android application on the receiver side.
Since
4.4.7

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.

- (BOOL) androidReceiverCompatible
readwritenonatomicassign

A flag indicating whether the sender application supports casting to an Android TV application.

Default value is NO.

Since
4.4.7