GCKDevice 클래스
    
    
      
    
    
      
      컬렉션을 사용해 정리하기
    
    
      
      내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
NSObject, <NS copy> 및 <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 주소입니다. 
네트워크 요청을 할 때 사용됩니다. 
- 다음 이후:
- 4.2 
 
 
  
  | 
        
          | - (NSString*) friendlyName |  | readwritenonatomiccopy | 
 
기기의 친숙한 이름입니다. 
사용자가 할당할 수 있는 이름입니다(예: '거실'). 
 
 
  
  | 
        
          | - (GCKDeviceStatus) status |  | readwritenonatomicassign | 
 
 
현재 실행 중인 수신기 애플리케이션에 의해 보고된 상태 텍스트입니다(있는 경우). 
 
 
  
  | 
        
          | - (NSString*) deviceVersion |  | readwritenonatomiccopy | 
 
 
  
  | 
        
          | - (BOOL) isOnLocalNetwork |  | readnonatomicassign | 
 
 
 
  
  
  
 
  
    
    
    
  
  
  달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
  최종 업데이트: 2025-07-25(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-25(UTC)"],[],["The GCKDevice class represents a receiver device, inheriting from NSObject. Key actions include: checking if a device is the same as another (`isSameDeviceAs:`), verifying device capabilities (`hasCapabilities:`), setting, retrieving, and removing attributes (`setAttribute:forKey:`, `attributeForKey:`, `removeAttributeForKey:`, `removeAllAttributes`), and extracting device category from a unique ID (`deviceCategoryForDeviceUniqueID:`). The class also exposes properties like `ipAddress`, `networkAddress`, `servicePort`, `deviceID`, `friendlyName`, `modelName`, `icons`, `status`, `statusText`, `deviceVersion`, `isOnLocalNetwork`, `type`, `category`, and `uniqueID` for device identification and management.\n"]]