Stay organized with collections
Save and categorize content based on your preferences.
DeviceFilter
@RequiresApi(value = 26) interface DeviceFilter
A DeviceFilter is a restriction on which devices should be shown in a call to Discovery.registerForResult
.
There are no device filters available yet in this version, so you must pass an empty list to Discovery.registerForResult
.
Summary
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,["# DeviceFilter\n============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/com/google/ambient/crossdevice/discovery/DeviceFilter \"View this page in Kotlin\") \\|Java\n\n\n```\n@RequiresApi(value = 26) interface DeviceFilter\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA DeviceFilter is a restriction on which devices should be shown in a call to [Discovery.registerForResult](/reference/com/google/ambient/crossdevice/discovery/Discovery#registerForResult(androidx.activity.result.ActivityResultCaller,com.google.ambient.crossdevice.discovery.Discovery.OnDevicePickerResultListener)).\n\nThere are no device filters available yet in this version, so you must pass an empty list to [Discovery.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| ### Nested types ||\n|------------------------------------------------------------------------------------------------------|---|\n| [DeviceFilter.Companion](/reference/com/google/ambient/crossdevice/discovery/DeviceFilter.Companion) | |"]]