A class containing global objects and state for the framework.
More...
#import <GCKCastContext.h>
A class containing global objects and state for the framework.
The context must be initialized early in the application's lifecycle via a call to setSharedInstanceWithOptions: (GCKCastContext).
- Since
- 3.0
+ (BOOL) isSharedInstanceInitialized |
|
|
|
Tests if the singleton instance has been initialized yet.
- Since
- 3.5.4
Registers a device provider, which adds support for a new type of (non-Cast) device.
- Parameters
-
Sets the shared instance, supplying a Cast options object.
If the shared instance is already initialized, an exception will be thrown.
- Parameters
-
Sets the shared instance, supplying a Cast options object.
The call will fail if the context is already initialized. This method must be called on the main thread.
- Parameters
-
options | The Cast options. |
error | A pointer at which to store the error in case of a failure. |
- Returns
YES
on success, NO
on failure.
- Since
- 4.0
+ (instancetype) sharedInstance |
|
|
|
Returns the singleton instance.
If a shared instance has not yet been initialized, an exception will be thrown.
- (void) unregisterDeviceProviderForCategory: |
|
(NSString *) |
category |
|
Unregisters the device provider for a given device category.
- Parameters
-
category | A string that uniquely identifies the type of device. |
- (GCK_EXTERN NSString* const) kGCKCastStateDidChangeNotification |
The name of the notification that will be published when the Cast state changes.
- (GCK_ASSUME_NONNULL_BEGIN GCK_EXTERN NSString* const) kGCKNotificationKeyCastState |
The userInfo
key for the new Cast state in a Cast state change notification.
- (GCKCastState) castState |
|
readnonatomicassign |
The discovery manager.
This object handles the discovery of receiver devices.
The session manager.
This object manages the interaction with receiver devices.
The documentation for this class was generated from the following file: