GCKCastOptions.h
1 // Copyright 2015 Google Inc.
2 
3 #import <GoogleCast/GCKDefines.h>
4 
5 #import <Foundation/Foundation.h>
6 
8 @class GCKLaunchOptions;
9 
10 GCK_ASSUME_NONNULL_BEGIN
11 
18 GCK_EXPORT
19 @interface GCKCastOptions : NSObject <NSCopying, NSSecureCoding>
20 
29 - (instancetype)initWithDiscoveryCriteria:(GCKDiscoveryCriteria *)discoveryCriteria;
30 
39 - (instancetype)initWithReceiverApplicationID:(NSString *)applicationID
40  GCK_DEPRECATED("Use initWithDiscoveryCriteria:");
41 
50 - (instancetype)initWithSupportedNamespaces:(NSArray<NSString *> *)namespaces
51  GCK_DEPRECATED("Use initWithDiscoveryCriteria:");
52 
57 @property(nonatomic, assign, readwrite) BOOL physicalVolumeButtonsWillControlDeviceVolume;
58 
67 @property(nonatomic, assign, readwrite) BOOL disableDiscoveryAutostart;
68 
76 @property(nonatomic, assign, readwrite) BOOL disableAnalyticsLogging;
77 
81 @property(nonatomic, copy, readwrite, GCK_NULLABLE) GCKLaunchOptions *launchOptions;
82 
89 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSString *sharedContainerIdentifier;
90 
99 @property(nonatomic, assign, readwrite) BOOL suspendSessionsWhenBackgrounded;
100 
107 @property(nonatomic, assign, readwrite) BOOL stopReceiverApplicationWhenEndingSession;
108 
109 @end
110 
111 GCK_ASSUME_NONNULL_END
BOOL disableDiscoveryAutostart
A flag indicating whether the discovery of Cast devices should start automatically at context initial...
Definition: GCKCastOptions.h:67
GCKLaunchOptions * launchOptions
The receiver launch options to use when starting a Cast session.
Definition: GCKCastOptions.h:81
Device discovery filter criteria.
Definition: GCKDiscoveryCriteria.h:22
Options that affect the discovery of Cast devices and the behavior of Cast sessions.
Definition: GCKCastOptions.h:19
BOOL stopReceiverApplicationWhenEndingSession
Whether the receiver application should be terminated when the user ends the session via the "Stop Ca...
Definition: GCKCastOptions.h:107
BOOL suspendSessionsWhenBackgrounded
Whether sessions should be suspended when the sender application goes into the background (and resume...
Definition: GCKCastOptions.h:99
Receiver application launch options.
Definition: GCKLaunchOptions.h:13
BOOL disableAnalyticsLogging
A flag which is used to disable or enable collection of diagnostic data to improve the reliability of...
Definition: GCKCastOptions.h:76
NSString * sharedContainerIdentifier
The shared container identifier to use for background HTTP downloads that are performed by the framew...
Definition: GCKCastOptions.h:89
BOOL physicalVolumeButtonsWillControlDeviceVolume
A flag indicating whether the sender device&#39;s physical volume buttons should control the session&#39;s vo...
Definition: GCKCastOptions.h:57