GCKDeviceProvider(Protected) Category Reference

Convenience methods for constructing GCKDevice objects and sending discovery notifications to the framework. More...

#import <GCKDeviceProvider+Protected.h>

Instance Methods

(void) - notifyDidStartDiscovery
 Notifies the discovery manager that discovery has started. More...
 
(void) - notifyDidPublishDevice:
 Notifies the discovery manager that a new device has been published. More...
 
(void) - notifyDidUnpublishDevice:
 Notifies the discovery manager that a previously-published device has been unpublished, because it is no longer available. More...
 
(void) - notifyDidUpdateDevice:
 Notifies the discovery manager that one or more of a previously-published device's display attributes (such as friendly name or icons) have changed. More...
 
(GCKDevice *) - createDeviceWithID:ipAddress:servicePort:
 
(GCKDevice *) - createDeviceWithID:networkAddress:servicePort:
 Factory method for constructing new GCKDevice instances. More...
 

Detailed Description

Convenience methods for constructing GCKDevice objects and sending discovery notifications to the framework.

Since
3.0

Method Documentation

- (GCKDevice *) createDeviceWithID: (NSString *)  deviceID
ipAddress: (NSString *)  ipAddress
servicePort: ("Use createDeviceWithID:networkAddress:servicePort: for IPv4 and IPv6 support")  GCK_DEPRECATED 
Deprecated:
Use createDeviceWithID:networkAddress:servicePort: for IPv4 and IPv6 support

Factory method for constructing new GCKDevice instances. The parameters correspond to immutable properties of a GCKDevice.

Parameters
deviceIDThe unique ID identifying this device. This value must be unique among all GCKDevice objects that are created by this provider.
ipAddressThe IP address of the device, in numeric form (for example, @"10.0.0.10"). May not be nil. Supports IPv4 only.
servicePortThe service port on which connections should be made to this device. May be 0 if a service port is not applicable.

Extends class GCKDeviceProvider.

- (GCKDevice *) createDeviceWithID: (NSString *)  deviceID
networkAddress: (GCKNetworkAddress *)  networkAddress
servicePort: (uint16_t)  servicePort 

Factory method for constructing new GCKDevice instances.

The parameters correspond to immutable properties of a GCKDevice.

Parameters
deviceIDThe unique ID identifying this device. This value must be unique among all GCKDevice objects that are created by this provider.
networkAddressThe IP address of the device, either IPv4 or IPv6
servicePortThe service port on which connections should be made to this device. May be 0 if a service port is not applicable.
Since
4.2

Extends class GCKDeviceProvider.

- (void) notifyDidPublishDevice: (GCKDevice *)  device

Notifies the discovery manager that a new device has been published.

Extends class GCKDeviceProvider.

- (void) notifyDidStartDiscovery

Notifies the discovery manager that discovery has started.

Extends class GCKDeviceProvider.

- (void) notifyDidUnpublishDevice: (GCKDevice *)  device

Notifies the discovery manager that a previously-published device has been unpublished, because it is no longer available.

Extends class GCKDeviceProvider.

- (void) notifyDidUpdateDevice: (GCKDevice *)  device

Notifies the discovery manager that one or more of a previously-published device's display attributes (such as friendly name or icons) have changed.

Extends class GCKDeviceProvider.


The documentation for this category was generated from the following file: