Stay organized with collections
Save and categorize content based on your preferences.
Discovery.OnDevicePickerResultListener
interface Discovery.OnDevicePickerResultListener
Interface to receive the result from the device picker, for use with registerForResult
.
Summary
Public methods |
abstract void |
Called when the user has selected the devices to connect to, and the receiving component has been successfully started.
|
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Discovery.OnDevicePickerResultListener\n======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/com/google/ambient/crossdevice/discovery/Discovery.OnDevicePickerResultListener \"View this page in Kotlin\") \\|Java\n\n\n```\ninterface Discovery.OnDevicePickerResultListener\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface to receive the result from the device picker, for use with [registerForResult](/reference/com/google/ambient/crossdevice/discovery/Discovery#registerForResult(androidx.activity.result.ActivityResultCaller,com.google.ambient.crossdevice.discovery.Discovery.OnDevicePickerResultListener)).\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `abstract void` | [onDevicePickerResult](/reference/com/google/ambient/crossdevice/discovery/Discovery.OnDevicePickerResultListener#onDevicePickerResult(kotlin.collections.Collection))`(` ` @`[NonNull](/reference/androidx/annotation/NonNull)` `[Collection](/reference/java/util/Collection)`\u003c@`[NonNull](/reference/androidx/annotation/NonNull)` `[Participant](/reference/com/google/ambient/crossdevice/Participant)`\u003e participants` `)` Called when the user has selected the devices to connect to, and the receiving component has been successfully started. |\n\nPublic methods\n--------------\n\n### onDevicePickerResult\n\n```\nabstract void onDevicePickerResult(\n @NonNull Collection\u003c@NonNull Participant\u003e participants\n)\n```\n\nCalled when the user has selected the devices to connect to, and the receiving component has been successfully started."]]