GCKCastOptions Class
Stay organized with collections
Save and categorize content based on your preferences.
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>.
- (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. |
- (BOOL) physicalVolumeButtonsWillControlDeviceVolume |
|
readwritenonatomicassign |
A flag indicating whether the sender device's physical volume buttons should control the session's volume.
- (BOOL) disableDiscoveryAutostart |
|
readwritenonatomicassign |
The receiver launch options to use when starting a Cast session.
- (NSString*) sharedContainerIdentifier |
|
readwritenonatomiccopy |
The shared container identifier to use for background HTTP downloads that are performed by the framework.
- Since
- 3.2
- (BOOL) suspendSessionsWhenBackgrounded |
|
readwritenonatomicassign |
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`GCKCastOptions` manages the discovery of Cast devices and how Cast sessions behave."],["Developers can customize options like receiver application ID, supported namespaces, and volume control behavior."],["Discovery of Cast devices can be automated or controlled manually by developers."],["Options for launching receiver applications and managing background sessions are available."],["These options must be configured before initializing the `GCKCastContext`."]]],[]]