GCKDevice クラス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
NSObject、<NSCopying>、<NSCoding> を継承します。
- (BOOL) isSameDeviceAs: |
|
(const GCKDevice *) |
other |
|
このデバイスが別のデバイスと同じ物理デバイスを参照しているかどうかをテストします。
両方の GCKDevice オブジェクトのカテゴリ、デバイス ID、IP アドレス、サービスポート、プロトコル バージョンが同じ場合は、YES
を返します。
- (BOOL) hasCapabilities: |
|
(NSInteger) |
deviceCapabilities |
|
デバイスが指定された機能をサポートしている場合は YES
を返します。
- Parameters
-
- (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 |
|
|
|
デバイスの IPv4 アドレス(ドット表記)。
ネットワーク リクエストを行う際に使用されます。
- (NSString*) friendlyName |
|
readwritenonatomiccopy |
デバイスのわかりやすい名前。
これは「リビングルーム」などのユーザーが割り当て可能な名前です。
- (NSString*) manufacturer |
|
readwritenonatomiccopy |
デバイスのメーカー名。
- Deprecated:
- 代わりに modelName またはカスタム属性を使用してください。
現在実行中のレシーバー アプリケーションによって報告されたステータス テキスト(ある場合)。
- (NSString*) deviceVersion |
|
readwritenonatomiccopy |
- (BOOL) isOnLocalNetwork |
|
readnonatomicassign |
このデバイスがローカル ネットワーク上にある場合は「はい」。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[],[]]