<GCKDeviceScannerListener> Protocol
Stay organized with collections
Save and categorize content based on your preferences.
Inherits <NSObjectNSObject>.
- (void) deviceDidComeOnline: |
|
(GCKDevice *) |
device |
|
|
optional |
Called when a device has been discovered or has come online.
- Parameters
-
- (void) deviceDidGoOffline: |
|
(GCKDevice *) |
device |
|
|
optional |
Called when a device has gone offline.
- Parameters
-
- (void) deviceDidChange: |
|
(GCKDevice *) |
device |
|
|
optional |
Called when there is a change to one or more properties of the device that do not affect connectivity to the device.
This includes all properties except the device ID, IP address, and service port; if any of these properties changes, the device will be reported as "offline" and a new device with the updated properties will be reported as "online".
- Parameters
-
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `GCKDeviceScannerListener` protocol is deprecated; use `GCKDiscoveryManager` and `GCKDiscoveryManagerListener` instead for Cast receiver discovery."],["This protocol defines methods to receive notifications when a device comes online, goes offline, or has property changes that don't affect connectivity."],["`deviceDidComeOnline:` is called when a device is discovered or becomes online."],["`deviceDidGoOffline:` is called when a device goes offline."],["`deviceDidChange:` is called when a device's properties (excluding ID, IP, and service port) change."]]],[]]