概要
受信デバイスを表すオブジェクト。
NSObject、<NSCopying>、<NSCoding> を継承します。
インスタンス メソッドの概要 | |
(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 |
このデバイスのグローバルに一意の ID。その他... | |
メソッドの詳細
- (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 | |
オブジェクトに任意の属性を設定します。
カスタム デバイス プロバイダがキャスト以外のデバイスのデバイス固有の情報を保存するために使用できます。
- 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 です。