GCKDeviceProvider(受保護) 類別參考資料
總覽
建構 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
-
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 benil
. 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.
擴充類別 GCKDeviceProvider。
- (GCKDevice *) createDeviceWithID: | (NSString *) | deviceID | |
networkAddress: | (GCKNetworkAddress *) | networkAddress | |
servicePort: | (uint16_t) | servicePort | |
建構新 GCKDevice 執行個體的工廠方法。
參數會對應 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.
- 開始時間
- 4.2
擴充類別 GCKDeviceProvider。