GCKLaunchOptions Class

  • GCKLaunchOptions is a class in the Google Cast iOS SDK used to set options for launching receiver applications.

  • It inherits from NSObject and conforms to the NSCopying and NSCoding protocols.

  • Key properties include languageCode for the sender's language and relaunchIfRunning to control relaunch behavior.

  • There are multiple initializers, including one with default values and others allowing specification of language code and relaunch behavior.

GCKLaunchOptions Class Reference

Overview

Receiver application launch options.

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

Instance Method Summary

(instancetype) 
- init
Initializes the object with default values. More...
(instancetype) 
Initializes the object with the sender device's language code and the specified relaunch behavior. More...
Designated initializer. More...

Property Summary

NSString * 
The sender's language code as per RFC 5646. More...
A flag indicating whether the receiver application should be relaunched if it is already running. 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: (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
read write nonatomic copy

The sender's language code as per RFC 5646.

The default is the sender device's language.

- (BOOL) relaunchIfRunning
read write nonatomic assign

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

The default is NO .

Design a Mobile Site
View Site in Mobile | Classic
Share by: