Stay organized with collections
Save and categorize content based on your preferences.
RemoteDevice
class RemoteDevice : AbstractSafeParcelable
Represents a device scan result.
Summary
Public constructors
|
Represents a device scan result.
|
Properties
|
String? |
The address information for this device.
|
List<Int> |
The capabilities of this device.
|
String? |
The deduplication id for this device.
|
String |
The human-readable name of this device.
|
IBinder |
The id token uniquely identifying this device.
|
Public constructors
<init>
RemoteDevice(
token: IBinder,
deviceName: String,
address: String? = null,
deduplicationId: String? = null,
capabilities: List<Int> = listOf())
Represents a device scan result.
Public methods
Properties
address
val address: String?
The address information for this device.
capabilities
val capabilities: List<Int>
The capabilities of this device.
deduplicationId
val deduplicationId: String?
The deduplication id for this device.
deviceName
val deviceName: String
The human-readable name of this device.
token
val token: IBinder
The id token uniquely identifying this device.
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.
[[["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-10-31 UTC."],[[["`RemoteDevice` represents a device scan result and stores device information like name, address, and capabilities."],["It includes a unique token for identification and an optional deduplication ID."],["`RemoteDevice` is parcelable, allowing it to be passed between Android components."],["Developers can access device properties like `address`, `capabilities`, `deduplicationId`, `deviceName`, and `token`."]]],["The `RemoteDevice` class represents a device scan result. Key information includes a unique `token` (IBinder), a human-readable `deviceName` (String), an optional `address` and `deduplicationId` (Strings), and a list of `capabilities` (List\u003cInt\u003e). The class provides a constructor to instantiate with this data. The `writeToParcel` method is for parceling. It also holds a `CREATOR` field.\n"]]