Stay organized with collections
Save and categorize content based on your preferences.
ScanResult
class ScanResult : AbstractSafeParcelable
Represents a device scan result.
Summary
Public constructors
|
Represents a device scan result.
|
Public constructors
<init>
ScanResult(remoteDevices: List<RemoteDevice>)
Represents a device scan result.
Public methods
Properties
remoteDevices
val remoteDevices: List<RemoteDevice>
The current list of available remote devices. Devices will drop off the list if they are no
longer available, and be added to the list if they are newly found.
Companion properties
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."],[],["`ScanResult` is a class representing a device scan result, containing a list of `RemoteDevice` objects. It is initialized with a `List` of `RemoteDevice`. The `remoteDevices` property holds the currently available remote devices, which are dynamically updated. The class implements `writeToParcel` for data serialization and has a `CREATOR` object for parcelable implementation. `Remote devices` can be added or removed from the list.\n"],null,[]]