Stay organized with collections
Save and categorize content based on your preferences.
GetDevicesResult
class
GetDevicesResult
:
AbstractSafeParcelable
,
ReflectedParcelable
Devices selected with DtdiClient.createDevicePickerIntent
.
Summary
Builder for GetDevicesResult
.
Analytics information for this event.
Devices that were selected to be part of the experience.
Required Parcelable Creator.
Public constructors
Public methods
writeToParcel
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)
:
Unit
Properties
analyticsInfo
val
analyticsInfo
:
AnalyticsInfo
Analytics information for this event.
devices
val
devices
:
List
<
SelectedDevice
>
Devices that were selected to be part of the experience.
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\u003eGetDevicesResult\u003c/code\u003e stores the devices selected using \u003ccode\u003eDtdiClient.createDevicePickerIntent\u003c/code\u003e and related analytics information.\u003c/p\u003e\n"],["\u003cp\u003eIt contains a list of \u003ccode\u003eSelectedDevice\u003c/code\u003e objects representing the chosen devices.\u003c/p\u003e\n"],["\u003cp\u003eIt includes \u003ccode\u003eAnalyticsInfo\u003c/code\u003e for event analysis.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetDevicesResult\u003c/code\u003e is Parcelable, enabling it to be passed between components.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the selected devices and analytics data through its properties.\u003c/p\u003e\n"]]],[],null,["# GetDevicesResult\n================\n\n```\nclass GetDevicesResult : AbstractSafeParcelable, ReflectedParcelable\n```\n\n|--------------------------------------------------------|\n| [com.google.android.gms.dtdi.core.GetDevicesResult](#) |\n\nDevices selected with [DtdiClient.createDevicePickerIntent](/android/reference/com/google/android/gms/dtdi/core/DtdiClient#createDevicePickerIntent(kotlin.collections.List,%20kotlin.Boolean,%20com.google.android.gms.dtdi.core.WakeUpRequest,%20com.google.android.gms.dtdi.analytics.CorrelationData,%20kotlin.Int)).\n\nSummary\n-------\n\n| ### Nested classes ||\n|---|-------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/android/gms/dtdi/core/GetDevicesResult.Builder) Builder for `GetDevicesResult`. |\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(kotlin.collections.List,%20com.google.android.gms.dtdi.core.AnalyticsInfo))`(`devices:` `[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\u003c[SelectedDevice](/android/reference/com/google/android/gms/dtdi/core/SelectedDevice)\u003e`, `analyticsInfo:` `[AnalyticsInfo](/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo)`)` Devices selected with [DtdiClient.createDevicePickerIntent](/android/reference/com/google/android/gms/dtdi/core/DtdiClient#createDevicePickerIntent(kotlin.collections.List,%20kotlin.Boolean,%20com.google.android.gms.dtdi.core.WakeUpRequest,%20com.google.android.gms.dtdi.analytics.CorrelationData,%20kotlin.Int)). |\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| [AnalyticsInfo](/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo) | [analyticsInfo](#analyticsInfo:com.google.android.gms.dtdi.core.AnalyticsInfo) Analytics information for this event. |\n| [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\\\u003c[SelectedDevice](/android/reference/com/google/android/gms/dtdi/core/SelectedDevice)\\\u003e | [devices](#devices:kotlin.collections.List) Devices that were selected to be part of the experience. |\n\n| ### Companion properties ||\n|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [Creator](https://developer.android.com/reference/android/os/Parcelable/Creator.html)\\\u003c[GetDevicesResult](#)\\\u003e | [CREATOR](#Companion.CREATOR:android.os.Parcelable.Creator) Required Parcelable Creator. |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nGetDevicesResult(\n devices: List\u003cSelectedDevice\u003e, \n analyticsInfo: AnalyticsInfo)\n```\n\nDevices selected with [DtdiClient.createDevicePickerIntent](/android/reference/com/google/android/gms/dtdi/core/DtdiClient#createDevicePickerIntent(kotlin.collections.List,%20kotlin.Boolean,%20com.google.android.gms.dtdi.core.WakeUpRequest,%20com.google.android.gms.dtdi.analytics.CorrelationData,%20kotlin.Int)).\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### analyticsInfo\n\n```\nval analyticsInfo: AnalyticsInfo\n```\n\nAnalytics information for this event. \n\n### devices\n\n```\nval devices: List\u003cSelectedDevice\u003e\n```\n\nDevices that were selected to be part of the experience.\n\nCompanion properties\n--------------------\n\n### CREATOR\n\n```\nval CREATOR: Creator\u003cGetDevicesResult\u003e\n```\n\nRequired Parcelable Creator."]]