Stay organized with collections
Save and categorize content based on your preferences.
TrustRelationshipType
class TrustRelationshipType
Direct use of the Google Play Services DTDI SDK is not supported. You should use the Cross Device SDK for creating cross device experiences. The possible trust relationship types, indicating what level of trust devices are able to be filtered.
Value is com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#UNSPECIFIED
, com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#MY_DEVICES_ONLY
, or com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#TRUSTED_CONTACTS
Summary
Public constructors
|
Direct use of the Google Play Services DTDI SDK is not supported. You should use the Cross Device SDK for creating cross device experiences. The possible trust relationship types, indicating what level of trust devices are able to be filtered.
|
Constants
MY_DEVICES_ONLY
static val MY_DEVICES_ONLY: Int
Value: 1
static val TRUSTED_CONTACTS: Int
Value: 2
UNSPECIFIED
static val UNSPECIFIED: Int
Value: 0
Public constructors
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\u003eTrustRelationshipType\u003c/code\u003e defines the level of trust for filtering devices in cross-device experiences.\u003c/p\u003e\n"],["\u003cp\u003eDirect use of the Google Play Services DTDI SDK is discouraged; developers should utilize the Cross Device SDK instead.\u003c/p\u003e\n"],["\u003cp\u003eThree trust levels are available: \u003ccode\u003eUNSPECIFIED\u003c/code\u003e, \u003ccode\u003eMY_DEVICES_ONLY\u003c/code\u003e, and \u003ccode\u003eTRUSTED_CONTACTS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach trust level is represented by an integer value: \u003ccode\u003eUNSPECIFIED\u003c/code\u003e (0), \u003ccode\u003eMY_DEVICES_ONLY\u003c/code\u003e (1), and \u003ccode\u003eTRUSTED_CONTACTS\u003c/code\u003e (2).\u003c/p\u003e\n"]]],["The `TrustRelationshipType` class defines trust levels for device filtering within the Cross Device SDK, not the DTDI SDK. Devices can be filtered based on trust: `UNSPECIFIED` (value 0), `MY_DEVICES_ONLY` (value 1), or `TRUSTED_CONTACTS` (value 2). The class provides static integer constants for these trust levels and a constructor, indicating the type of trust relation. The document also directs developers to the cross device SDK instead of the DTDI SDK.\n"],null,["# DeviceFilter.TrustRelationshipType\n\nTrustRelationshipType\n=====================\n\n```\nclass TrustRelationshipType\n```\n\n|--------------------------------------------------------------------------|\n| [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType](#) |\n\nDirect use of the Google Play Services DTDI SDK is not supported. You should use the [Cross Device SDK](https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview) for creating cross device experiences. The possible trust relationship types, indicating what level of trust devices are able to be filtered. \nValue is [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#UNSPECIFIED](#UNSPECIFIED:kotlin.Int), [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#MY_DEVICES_ONLY](#MY_DEVICES_ONLY:kotlin.Int), or [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#TRUSTED_CONTACTS](#TRUSTED_CONTACTS:kotlin.Int)\n\nSummary\n-------\n\n| ### Constants ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MY_DEVICES_ONLY](#MY_DEVICES_ONLY:kotlin.Int) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TRUSTED_CONTACTS](#TRUSTED_CONTACTS:kotlin.Int) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [UNSPECIFIED](#UNSPECIFIED:kotlin.Int) \u003cbr /\u003e |\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E())`()` Direct use of the Google Play Services DTDI SDK is not supported. You should use the [Cross Device SDK](https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview) for creating cross device experiences. The possible trust relationship types, indicating what level of trust devices are able to be filtered. |\n\nConstants\n---------\n\n### MY_DEVICES_ONLY\n\n```\nstatic val MY_DEVICES_ONLY: Int\n``` \n\n Value: 1\n\n### TRUSTED_CONTACTS\n\n```\nstatic val TRUSTED_CONTACTS: Int\n``` \n\n Value: 2\n\n### UNSPECIFIED\n\n```\nstatic val UNSPECIFIED: Int\n``` \n\n Value: 0\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nTrustRelationshipType()\n```\n\nDirect use of the Google Play Services DTDI SDK is not supported. You should use the [Cross Device SDK](https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview) for creating cross device experiences. The possible trust relationship types, indicating what level of trust devices are able to be filtered. \nValue is [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#UNSPECIFIED](#UNSPECIFIED:kotlin.Int), [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#MY_DEVICES_ONLY](#MY_DEVICES_ONLY:kotlin.Int), or [com.google.android.gms.dtdi.core.DeviceFilter.TrustRelationshipType#TRUSTED_CONTACTS](#TRUSTED_CONTACTS:kotlin.Int)"]]