總覽
代表接收器裝置的物件。
沿用 NSObject、<NSCopy> 和 <NSCoding> 的 NSObject。
執行個體方法摘要 | |
(BOOL) | - isSameDeviceAs: |
測試這部裝置是否參照了實體裝置。更多... | |
(BOOL) | - hasCapabilities: |
如果裝置支援指定功能,則傳回 YES 。更多... | |
(void) | - setAttribute:forKey: |
設定物件中的任意屬性。更多... | |
(NSObject< NSCoding > *__nullable) | - attributeForKey: |
查詢物件的屬性。更多... | |
(void) | - removeAttributeForKey: |
從物件移除屬性。更多... | |
(void) | - removeAllAttributes |
移除物件的所有屬性。更多... | |
屬性摘要 | |
NSString * | ipAddress |
裝置的 IPv4 位址 (採用點標記法)。更多... | |
uint16_t | servicePort |
裝置的服務通訊埠。更多... | |
NSString * | deviceID |
裝置的專屬識別碼。更多... | |
NSString * | friendlyName |
裝置友善名稱。更多... | |
NSString * | manufacturer |
裝置的製造商名稱。更多... | |
NSString * | modelName |
裝置的型號名稱。更多... | |
NSArray< GCKImage * > * | icons |
包含裝置圖示的 GCKImage 物件陣列。更多... | |
GCKDeviceStatus | status |
裝置最近一次掃描時的狀態。更多... | |
NSString * | statusText |
目前執行中的接收器應用程式回報的狀態文字 (如果有的話)。更多... | |
NSString * | deviceVersion |
裝置的通訊協定版本。更多... | |
BOOL | isOnLocalNetwork |
如果這部裝置位於區域網路,則為「是」。更多... | |
GCKDeviceType | type |
裝置類型。更多... | |
NSString * | category |
裝置類別,這是用來識別裝置類型類型的字串。更多... | |
NSString * | uniqueID |
這個裝置的全域唯一識別碼。更多... | |
方法說明
- (BOOL) isSameDeviceAs: | (const GCKDevice *) | other |
測試這部裝置是否參照了實體裝置。
如果兩個 GCKDevice 物件具有相同的類別、裝置 ID、IP 位址、服務通訊埠和通訊協定版本,則會傳回 YES
。
- (BOOL) hasCapabilities: | (NSInteger) | deviceCapabilities |
如果裝置支援指定功能,則傳回 YES
。
- Parameters
-
deviceCapabilities A bitwise-OR of one or more of the GCKDeviceCapability constants.
- (void) setAttribute: | (NSObject< NSCoding > *) | attribute | |
forKey: | (NSString *) | key | |
設定物件中的任意屬性。
可供自訂裝置供應商用於儲存非 Cast 裝置的專屬資訊。
- Parameters
-
attribute The attribute value, which must be key-value coding compliant, and cannot be nil
.key The key that identifies the attribute. The key is an arbitrary string. It cannot be nil
.
- (NSObject<NSCoding> * __nullable) attributeForKey: | (NSString *) | key |
查詢物件的屬性。
- Parameters
-
key The key that identifies the attribute. The key is an arbitrary string. It cannot be nil
.
- 傳回
- 屬性的值,如果沒有,則
nil
。
- (void) removeAttributeForKey: | (NSString *) | key |
從物件移除屬性。
- Parameters
-
key The key that identifies the attribute. The key is an arbitrary string. It cannot be nil
.
- (void) removeAllAttributes |
移除物件的所有屬性。
資源詳細資料
|
readnonatomiccopy |
裝置的 IPv4 位址 (採用點標記法)。
用於發出網路要求。
|
readnonatomicassign |
裝置的服務通訊埠。
|
readnonatomiccopy |
裝置的專屬識別碼。
|
readwritenonatomiccopy |
裝置友善名稱。
此為可指派的名稱,例如「客廳」。
|
readwritenonatomiccopy |
裝置的製造商名稱。
- Deprecated:
- 改用 modelName 或自訂屬性。
|
readwritenonatomiccopy |
裝置的型號名稱。
|
readwritenonatomicassign |
裝置最近一次掃描時的狀態。
|
readwritenonatomiccopy |
目前執行中的接收器應用程式回報的狀態文字 (如果有的話)。
|
readwritenonatomiccopy |
裝置的通訊協定版本。
|
readnonatomicassign |
如果這部裝置位於區域網路,則為「是」。
|
readnonatomicassign |
裝置類型。
- 辛策
- 3.3
|
readnonatomiccopy |
裝置類別,這是用來識別裝置類型類型的字串。
投放裝置的類別為 kGCKCastDeviceCategory。