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 functions |
Unit |
Called when the user has selected the devices to connect to, and the receiving component has been successfully started.
|
Public functions
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.
[[["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 2025-02-10 UTC."],[],[],null,["# Discovery.OnDevicePickerResultListener\n======================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/ambient/crossdevice/discovery/Discovery.OnDevicePickerResultListener \"View this page in 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/kotlin/com/google/ambient/crossdevice/discovery/Discovery#registerForResult(androidx.activity.result.ActivityResultCaller,com.google.ambient.crossdevice.discovery.Discovery.OnDevicePickerResultListener)).\n\nSummary\n-------\n\n| ### Public functions ||\n|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](/reference/kotlin/kotlin/Unit) | [onDevicePickerResult](/reference/kotlin/com/google/ambient/crossdevice/discovery/Discovery.OnDevicePickerResultListener#onDevicePickerResult(kotlin.collections.Collection))`(participants: `[Collection](/reference/kotlin/kotlin/collections/Collection)`\u003c`[Participant](/reference/kotlin/com/google/ambient/crossdevice/Participant)`\u003e)` Called when the user has selected the devices to connect to, and the receiving component has been successfully started. |\n\nPublic functions\n----------------\n\n### onDevicePickerResult\n\n```\nfun onDevicePickerResult(participants: Collection\u003cParticipant\u003e): Unit\n```\n\nCalled when the user has selected the devices to connect to, and the receiving component has been successfully started."]]