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)chromecastAvailable
Discussion
Indicates whether there is a Chromecast device available
Declared In
APSChromecastManager.h
chromecastDevices
Returns a list of detected GCKDevices
- (NSArray *)chromecastDevices
Discussion
Returns a list of detected GCKDevices
Declared In
APSChromecastManager.h
connectToChromecastDevice:
Connect to a specified device
- (void)connectToChromecastDevice:(GCKDevice *)device
Parameters
- device
A GCKDevice to connect to
Discussion
Connect to a specified device
Declared In
APSChromecastManager.h
currentChromecastDevice
Get the current GCKDevice
- (GCKDevice *)currentChromecastDevice
Discussion
Get the current GCKDevice
Declared In
APSChromecastManager.h
currentChromecastDeviceManager
Get the current GCKDeviceManager
- (GCKDeviceManager *)currentChromecastDeviceManager
Discussion
Get the current GCKDeviceManager
Declared In
APSChromecastManager.h