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.
[[["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,["# DeviceFilter\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/ambient/crossdevice/discovery/DeviceFilter \"View this page in 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/kotlin/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/kotlin/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/kotlin/com/google/ambient/crossdevice/discovery/DeviceFilter.Companion) | |"]]