Convenience methods for constructing GCKDevice objects and sending discovery notifications to the framework.
More...
#import <GCKDeviceProvider+Protected.h>
Convenience methods for constructing GCKDevice objects and sending discovery notifications to the framework.
- Since
- 3.0
- (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
-
deviceID | The unique ID identifying this device. This value must be unique among all GCKDevice objects that are created by this provider. |
ipAddress | The IP address of the device, in numeric form (for example, @"10.0.0.10" ). May not be nil . Supports IPv4 only. |
servicePort | The 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
-
deviceID | The unique ID identifying this device. This value must be unique among all GCKDevice objects that are created by this provider. |
networkAddress | The IP address of the device, either IPv4 or IPv6 |
servicePort | The 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: