GCKDeviceProvider(Protected) 类别

GCKDeviceProvider(Protected) 类别参考

概览

用于构造 GCKDevice 对象以及向框架发送发现通知的便捷方法。

开始时间
3.0

实例方法摘要

(void) - notifyDidStartDiscovery
 通知发现管理器发现已启动。更多...
 
(void) - notifyDidPublishDevice:
 通知发现管理器已发布新设备。更多...
 
(void) - notifyDidUnpublishDevice:
 通知发现管理器,由于之前发布的设备不再可用,因此已被取消发布。更多...
 
(void) - notifyDidUpdateDevice:
 通知发现管理器之前发布的设备的一个或多个显示属性(例如友好名称或图标)已更改。更多...
 
(GCKDevice *) - createDeviceWithID:ipAddress:servicePort:
 
(GCKDevice *) - createDeviceWithID:networkAddress:servicePort:
 用于构建新的 GCKDevice 实例的工厂方法。更多...
 

方法详细信息

- (void) notifyDidStartDiscovery

通知发现管理器发现已启动。

扩展 GCKDeviceProvider 类。

- (void) notifyDidPublishDevice: (GCKDevice *)  device

通知发现管理器已发布新设备。

扩展 GCKDeviceProvider 类。

- (void) notifyDidUnpublishDevice: (GCKDevice *)  device

通知发现管理器,由于之前发布的设备不再可用,因此已被取消发布。

扩展 GCKDeviceProvider 类。

- (void) notifyDidUpdateDevice: (GCKDevice *)  device

通知发现管理器之前发布的设备的一个或多个显示属性(例如友好名称或图标)已更改。

扩展 GCKDeviceProvider 类。

- (GCKDevice *) createDeviceWithID: (NSString *)  deviceID
ipAddress: (NSString *)  ipAddress
servicePort: (uint16_t)  servicePort 
Deprecated:
使用 createDeviceWithID:networkAddress:servicePort: 支持 IPv4 和 IPv6

用于构建新的 GCKDevice 实例的工厂方法。这些参数对应于 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.

扩展 GCKDeviceProvider 类。

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

用于构建新的 GCKDevice 实例的工厂方法。

这些参数对应于 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.
开始时间
4.2

扩展 GCKDeviceProvider 类。