APSChromecastManager Class Reference
| Inherits from | NSObject |
| Conforms to | GCKDeviceManagerDelegate GCKDeviceScannerListener UIActionSheetDelegate |
| Declared in | APSChromecastManager.h APSChromecastManager.m |
Overview
The APSChromecastManager is a singleton that manages Google Cast connections for the Veeplay media player. To setup, simply set your cast app id on the shared instance:
[APSChromecastManager sharedInstance].chromecastAppId = @"YOURAPPID";
Notifications
- APSMediaPlayerChromecastDeviceOnline - Posted when a Chromecast device comes online.
- APSMediaPlayerChromecastDeviceOffline - Posted when a Chromecast device goes offline.
- APSMediaPlayerChromecastConnectedNotification - Posted when the manager connected to a Chromecast compatible device.
- APSMediaPlayerChromecastDisconnectedNotification - Posted when the manager disconnected from a Chromecast compatible device.
Instance Methods
chromecastAvailable
Indicates whether there is a Chromecast device available
- (BOOL)chromecastAvailableDiscussion
Indicates whether there is a Chromecast device available
Declared In
APSChromecastManager.hchromecastDevices
Returns a list of detected GCKDevices
- (NSArray *)chromecastDevicesDiscussion
Returns a list of detected GCKDevices
Declared In
APSChromecastManager.hconnectToChromecastDevice:
Connect to a specified device
- (void)connectToChromecastDevice:(GCKDevice *)deviceParameters
- device
A GCKDevice to connect to
Discussion
Connect to a specified device
Declared In
APSChromecastManager.hcurrentChromecastDevice
Get the current GCKDevice
- (GCKDevice *)currentChromecastDeviceDiscussion
Get the current GCKDevice
Declared In
APSChromecastManager.hcurrentChromecastDeviceManager
Get the current GCKDeviceManager
- (GCKDeviceManager *)currentChromecastDeviceManagerDiscussion
Get the current GCKDeviceManager
Declared In
APSChromecastManager.h