Stay organized with collections
Save and categorize content based on your preferences.
DeviceAvailabilityListener
interface DeviceAvailabilityListener
Summary
Public methods
|
abstract Unit |
Called when the availability of nearby devices has changed.
|
Public methods
onDeviceAvailabilityChanged
abstract fun onDeviceAvailabilityChanged(devicesAvailable: Boolean): Unit
Called when the availability of nearby devices has changed. Currently we only support same GAIA
device scanning. Note that the listener is only notified when the number of available devices
has decreased to 0 or increased from 0 to 1+.
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[],["The `DeviceAvailabilityListener` interface has one core function: `onDeviceAvailabilityChanged`. This function is triggered when the availability of nearby devices changes. The `devicesAvailable` parameter, a boolean, indicates whether devices are available (true) or not (false). The listener is notified only when the number of available devices transitions to zero or changes from zero to one or more. It currently focuses on same GAIA device scanning.\n"],null,[]]