GCKDevice 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
NSObject, <NS복사> 및 <NSSecureCoding>을 상속합니다.
- (BOOL) isSameDeviceAs: |
|
(const GCKDevice *) |
other |
|
이 기기가 다른 기기와 동일한 실제 기기를 참조하는지 테스트합니다.
두 GCKDevice 객체의 카테고리, 기기 ID, IP 주소, 서비스 포트, 프로토콜 버전이 동일한 경우 YES
를 반환합니다.
- (BOOL) hasCapabilities: |
|
(GCKDeviceCapabilities) |
deviceCapabilities |
|
기기가 지정된 모든 기능을 지원하는 경우 YES
를 반환합니다.
- Parameters
-
deviceCapabilities | A bitwise-OR of one or more of the GCKDeviceCapabilities constants. |
- (void) setAttribute: |
|
(NSObject< NSSecureCoding > *) |
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 . |
- (nullable NSObject<NSSecureCoding> *) 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 |
|
|
|
+ (NSString *) deviceCategoryForDeviceUniqueID: |
|
(NSString *) |
deviceUniqueID |
|
기기 고유 ID에서 기기 카테고리를 추출합니다.
기기의 IP 주소입니다.
네트워크를 요청할 때 사용됩니다.
- Since
- 4.2
- (NSString*) friendlyName |
|
readwritenonatomiccopy |
기기의 친숙한 이름입니다.
'거실'과 같이 사용자가 지정할 수 있는 이름입니다.
현재 실행 중인 수신기 애플리케이션에서 보고한 상태 텍스트입니다.
- (NSString*) deviceVersion |
|
readwritenonatomiccopy |
- (BOOL) isOnLocalNetwork |
|
readnonatomicassign |
예, 기기가 로컬 네트워크에 있는 경우 가능합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2022-12-05(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]