Stay organized with collections
Save and categorize content based on your preferences.
Builder
class
Builder
Builder class for DeviceFilter.
Summary
Public constructors
Public methods
setTrustRelationshipFilter
@CanIgnoreReturnValue
fun
setTrustRelationshipFilter
(
trustRelationshipFilter
:
Int
)
:
DeviceFilter.Builder
!
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\u003eBuilder\u003c/code\u003e helps create instances of \u003ccode\u003eDeviceFilter\u003c/code\u003e with desired configurations.\u003c/p\u003e\n"],["\u003cp\u003eIt offers methods to set filters based on features and trust relationships.\u003c/p\u003e\n"],["\u003cp\u003eYou can initialize \u003ccode\u003eBuilder\u003c/code\u003e with an existing \u003ccode\u003eDeviceFilter\u003c/code\u003e or start fresh.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebuild()\u003c/code\u003e method is used to finalize and retrieve the configured \u003ccode\u003eDeviceFilter\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# DeviceFilter.Builder\n\nBuilder\n=======\n\n```\nclass Builder\n```\n\n|---|------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [com.google.android.gms.dtdi.core.DeviceFilter.Builder](#) |\n\nBuilder class for DeviceFilter.\n\nSummary\n-------\n\n| ### Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E())`()` \u003cbr /\u003e |\n| [\u003cinit\u003e](#%3Cinit%3E(com.google.android.gms.dtdi.core.DeviceFilter))`(`origin:` `[DeviceFilter](/android/reference/com/google/android/gms/dtdi/core/DeviceFilter)!`)` \u003cbr /\u003e |\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DeviceFilter](/android/reference/com/google/android/gms/dtdi/core/DeviceFilter)! | [build](#build())`()` \u003cbr /\u003e |\n| [DeviceFilter.Builder](#)! | [setFeatureFilter](#setFeatureFilter(kotlin.String))`(`@Nullable` `featureFilter:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?`)` \u003cbr /\u003e |\n| [DeviceFilter.Builder](#)! | [setTrustRelationshipFilter](#setTrustRelationshipFilter(kotlin.Int))`(`trustRelationshipFilter:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nBuilder()\n``` \n\n### \\\u003cinit\\\u003e\n\n```\nBuilder(origin: DeviceFilter!)\n```\n\nPublic methods\n--------------\n\n### build\n\n```\nfun build(): DeviceFilter!\n``` \n\n### setFeatureFilter\n\n```\n@CanIgnoreReturnValue fun setFeatureFilter(@Nullable featureFilter: String?): DeviceFilter.Builder!\n``` \n\n### setTrustRelationshipFilter\n\n```\n@CanIgnoreReturnValue fun setTrustRelationshipFilter(trustRelationshipFilter: Int): DeviceFilter.Builder!\n```"]]