Språk

CompanionDeviceManagerTrustType Enum

Definition

Identifies the kinds of trust that a device trust pairing request can enable.

public enum CompanionDeviceManagerTrustType
type CompanionDeviceManagerTrustType = 
Inheritance
CompanionDeviceManagerTrustType

Fields

Name Value Description
ScreenAutomation 0

Trust type for screen automation. E.g. allowing agents to see and interact with the screen to help you complete tasks even if the screen is off.

Android reference for android.companion.CompanionDeviceManager.TRUST_TYPE_SCREEN_AUTOMATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ProactiveAssistance 1

Trust type for proactive assistance. E.g. agents can use your app's screen content to provide proactive assistance.

Android reference for android.companion.CompanionDeviceManager.TRUST_TYPE_PROACTIVE_ASSISTANCE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

CrossDeviceAuthentication 2

Trust type for platform-level cross-device authentication.

This trust type is used for features where one device can authenticate another, typically based on proximity. For example, allowing a trusted watch to unlock a companion phone.

When this trust type is requested and granted during Companion Device Manager (CDM) trust pairing, the platform utilizes the established secure channel to facilitate these authentication flows.

Android reference for android.companion.CompanionDeviceManager.TRUST_TYPE_CROSS_DEVICE_AUTHENTICATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

The values correspond to the TRUST_TYPE_* constants in Android's CompanionDeviceManager. The trustTypes parameter of RequestDeviceTrustPairing(Int32, OutOfBandPairingRequest, Int32[], IExecutor, CompanionDeviceManager+TrustPairingCallback) is an int[], so cast each value to int when you create the array, for example (int) CompanionDeviceManagerTrustType.ScreenAutomation. GetTrustTypes() returns the enabled values as integers. See the Android reference.

Applies to