GCKCastOptions Class

GCKCastOptions Class Reference

Overview

Options that affect the discovery of Cast devices and the behavior of Cast sessions.

Writable properties must be set before passing this object to the GCKCastContext .

Since
3.0

Inherits NSObject. Implements <NSCopying>.

Instance Method Summary

(instancetype) 
Constructs a new GCKCastOptions object with the specified receiver application ID. More...
(instancetype) 
Constructs a new GCKCastOptions object with the specified list of namespaces. More...

Property Summary

A flag indicating whether the sender device's physical volume buttons should control the session's volume. More...
A flag indicating whether the discovery of Cast devices should start automatically at context initialization time. More...
The receiver launch options to use when starting a Cast session. More...
The shared container identifier to use for background HTTP downloads that are performed by the framework. More...
Whether sessions should be suspended when the sender application goes into the background (and resumed when it returns to the foreground). More...

Method Detail

- (instancetype) initWithReceiverApplicationID: (NSString *)  applicationID

Constructs a new GCKCastOptions object with the specified receiver application ID.

Parameters
applicationID
The ID of the receiver application which must be supported by discovered Cast devices, and which will be launched when starting a new Cast session.
- (instancetype) initWithSupportedNamespaces: (NSArray< NSString * > *)  namespaces

Constructs a new GCKCastOptions object with the specified list of namespaces.

Parameters
namespaces
A list of namespaces which must be supported by the currently running receiver application on each discovered Cast device.

Property Detail

- (BOOL) physicalVolumeButtonsWillControlDeviceVolume
read write nonatomic assign

A flag indicating whether the sender device's physical volume buttons should control the session's volume.

- (BOOL) disableDiscoveryAutostart
read write nonatomic assign

A flag indicating whether the discovery of Cast devices should start automatically at context initialization time.

If set to NO , discovery can be started and stopped on-demand by using the methods startDiscovery (GCKDiscoveryManager) and stopDiscovery (GCKDiscoveryManager) .

Since
3.4
- ( GCKLaunchOptions *) launchOptions
read write nonatomic copy

The receiver launch options to use when starting a Cast session.

- (NSString*) sharedContainerIdentifier
read write nonatomic copy

The shared container identifier to use for background HTTP downloads that are performed by the framework.

Since
3.2
- (BOOL) suspendSessionsWhenBackgrounded
read write nonatomic assign

Whether sessions should be suspended when the sender application goes into the background (and resumed when it returns to the foreground).

By default this option is set to YES . It is appropriate to set this to NO in applications that are able to maintain network connections indefinitely while in the background.

Since
3.4
Create a Mobile Website
View Site in Mobile | Classic
Share by: