<GCKDiscoveryManagerListener> 프로토콜
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
GCKDiscoveryManager 리스너 프로토콜입니다.
- 다음 이후:
- 3.0
<NSObjectNSObject>를 상속합니다.
- (void) didStartDiscoveryForDeviceCategory: |
|
(NSString *) |
deviceCategory |
|
|
optional |
지정된 기기 카테고리의 탐색이 시작되었을 때 호출됩니다.
- (void) willUpdateDeviceList |
|
|
|
|
optional |
검색된 기기 목록이 어떤 방식으로든 업데이트되려고 할 때 호출됩니다.
- (void) didUpdateDeviceList |
|
|
|
|
optional |
검색된 기기 목록이 어떤 식으로든 업데이트되었을 때 호출됩니다.
- (void) didInsertDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
새로 발견된 기기가 기기 목록에 삽입되었을 때 호출됩니다.
- Parameters
-
device | The device that was inserted. |
index | The list index at which the device was inserted. |
- (void) didUpdateDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
이전에 발견된 기기가 업데이트되었을 때 호출됩니다.
- Parameters
-
device | The device that was updated. |
index | The list index of the device. |
- (void) didUpdateDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
andMoveToIndex: |
|
(NSUInteger) |
newIndex |
|
|
| |
|
optional |
이전에 발견된 기기가 목록 내에서 업데이트되거나 재정렬되었을 때 호출됩니다.
- Parameters
-
device | The device that was updated. |
index | The previous list index of the device. |
newIndex | The current list index of the device. |
- (void) didRemoveDeviceAtIndex: |
|
(NSUInteger) |
index |
|
|
optional |
이전에 발견된 기기가 오프라인 상태로 전환되어 기기 목록에서 삭제되었을 때 호출됩니다.
- Parameters
-
index | The list index of the device that was removed. |
- (void) didRemoveDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
이전에 발견된 기기가 오프라인 상태로 전환되어 기기 목록에서 삭제되었을 때 호출됩니다.
이는 didRemoveDeviceAtIndex:의 대안입니다. 둘 다 구현되면 둘 다 호출됩니다.
- Parameters
-
device | The device that was removed. |
index | The list index of the device that was removed. |
- 다음 이후:
- 4.1
- (void) didHaveDiscoveredDeviceWhenStartingDiscovery |
|
|
|
|
optional |
검색 프로세스가 시작되기 전에 목록에 이전에 발견된 기기가 있을 때 호출됩니다.
이러한 기기는 마지막 검색 프로세스에 의해 검색된 이후 여전히 유효하며 만료되지 않았습니다. 이전에 검색된 기기의 전체 목록은 deviceCount: 및 deviceAtIndex:를 사용하여 얻을 수 있습니다.
- 다음 이후:
- 4.4.1
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-01(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"]],["최종 업데이트: 2023-12-01(UTC)"],[[["The `GCKDiscoveryManagerListener` protocol manages the device discovery process, providing updates on discovered Cast devices."],["It provides methods to track the start of device discovery, list updates, insertion, updates, removals, and device reorderings."],["The protocol includes optional methods that allow listeners to get notified about events like when a previously discovered device is still in the list when a new discovery session starts or when some discovered devices are about to be updated or are updated in some way.."],["Since version 4.1, it offers an alternative method for device removal notification."],["Introduced in version 3.0 and updated in subsequent versions with additional functionalities for device discovery management."]]],["The GCKDiscoveryManagerListener protocol manages device discovery. Key actions include being notified when discovery starts for a device category and when the device list is updated. Notifications are triggered when devices are inserted, updated, or removed from the list, with index information provided. The protocol also handles updates where devices are reordered in the list and when devices were already discovered before starting the discovery process. These updates provide device details and their positions within the list.\n"]]