Stay organized with collections
Save and categorize content based on your preferences.
RemoteDevice
class
RemoteDevice
:
AbstractSafeParcelable
Represents a device scan result.
Summary
Represents a device scan result.
The address information for this device.
The capabilities of this device.
The deduplication id for this device.
The human-readable name of this device.
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
writeToParcel
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)
:
Unit
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."],[[["\u003cp\u003e\u003ccode\u003eRemoteDevice\u003c/code\u003e represents a device scan result and stores device information like name, address, and capabilities.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a unique token for identification and an optional deduplication ID.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRemoteDevice\u003c/code\u003e is parcelable, allowing it to be passed between Android components.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access device properties like \u003ccode\u003eaddress\u003c/code\u003e, \u003ccode\u003ecapabilities\u003c/code\u003e, \u003ccode\u003ededuplicationId\u003c/code\u003e, \u003ccode\u003edeviceName\u003c/code\u003e, and \u003ccode\u003etoken\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,["# RemoteDevice\n============\n\n```\nclass RemoteDevice : AbstractSafeParcelable\n```\n\n|----------------------------------------------------|\n| [com.google.android.gms.dtdi.core.RemoteDevice](#) |\n\nRepresents a device scan result.\n\nSummary\n-------\n\n| ### Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(android.os.IBinder,%20kotlin.String,%20kotlin.String,%20kotlin.String,%20kotlin.collections.List))`(`token:` `[IBinder](https://developer.android.com/reference/android/os/IBinder.html)`, `deviceName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `address:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?` `=` null, `deduplicationId:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?` `=` null, `capabilities:` `[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\u003c[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)\u003e` `=` listOf())` Represents a device scan result. |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\n| ### Properties ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [address](#address:kotlin.String) The address information for this device. |\n| [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\\\u003c[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)\\\u003e | [capabilities](#capabilities:kotlin.collections.List) The capabilities of this device. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [deduplicationId](#deduplicationId:kotlin.String) The deduplication id for this device. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [deviceName](#deviceName:kotlin.String) The human-readable name of this device. |\n| [IBinder](https://developer.android.com/reference/android/os/IBinder.html) | [token](#token:android.os.IBinder) The id token uniquely identifying this device. |\n\n| ### Companion properties ||\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| [Creator](https://developer.android.com/reference/android/os/Parcelable/Creator.html)\\\u003c[RemoteDevice](#)\\\u003e | [CREATOR](#Companion.CREATOR:android.os.Parcelable.Creator) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nRemoteDevice(\n token: IBinder, \n deviceName: String, \n address: String? = null, \n deduplicationId: String? = null, \n capabilities: List\u003cInt\u003e = listOf())\n```\n\nRepresents a device scan result.\n\nPublic methods\n--------------\n\n### writeToParcel\n\n```\nfun writeToParcel(\n dest: Parcel, \n flags: Int\n): Unit\n```\n\nProperties\n----------\n\n### address\n\n```\nval address: String?\n```\n\nThe address information for this device. \n\n### capabilities\n\n```\nval capabilities: List\u003cInt\u003e\n```\n\nThe capabilities of this device. \n\n### deduplicationId\n\n```\nval deduplicationId: String?\n```\n\nThe deduplication id for this device. \n\n### deviceName\n\n```\nval deviceName: String\n```\n\nThe human-readable name of this device. \n\n### token\n\n```\nval token: IBinder\n```\n\nThe id token uniquely identifying this device.\n\nCompanion properties\n--------------------\n\n### CREATOR\n\n```\nval CREATOR: Creator\u003cRemoteDevice\u003e\n```"]]