Språk

CompanionDeviceManagerTrustErrorCode Enum

Definition

Identifies the reason that a device trust pairing request failed.

public enum CompanionDeviceManagerTrustErrorCode
type CompanionDeviceManagerTrustErrorCode = 
Inheritance
CompanionDeviceManagerTrustErrorCode

Fields

Name Value Description
Unknown 0

Unknown error for trust pairing.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_UNKNOWN.

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.

PairingTransportNotAttached 1

The transport was not attached for trust pairing.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_PAIRING_TRANSPORT_NOT_ATTACHED.

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.

PairingCanceled 2

The trust pairing dialog was cancelled by the user or implicitly.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_PAIRING_CANCELED.

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.

PairingFailedToCreatePairingDialog 3

Failed to create or send pairing dialog for trust pairing.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_PAIRING_FAILED_TO_CREATE_PAIRING_DIALOG.

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.

PairingPinCodeNotMatching 4

The PIN code confirmed by the user did not match.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_PAIRING_PIN_CODE_NOT_MATCHING.

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.

PairingAssociationDoesNotExist 5

The association does not exist.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_PAIRING_ASSOCIATION_DOES_NOT_EXIST.

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.

ResumptionFailed 6

The trust resumption failed.

This error is returned when the system fails to resume a previous trust relationship. You can try to re-attach the transport to resume the trust relationship.

If re-attaching fails, you can try to re-pair the devices.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_RESUMPTION_FAILED.

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.

OutOfBandPairingFailed 7

The out of band pairing failed.

Android reference for android.companion.CompanionDeviceManager.ERROR_TRUST_OUT_OF_BAND_PAIRING_FAILED.

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 ERROR_TRUST_* constants in Android's CompanionDeviceManager. The binding declares the errorCode parameter of OnFailure(CompanionDeviceResult) as CompanionDeviceResult, but Android supplies a trust error code. Cast its integer value to this enum to interpret it, for example (CompanionDeviceManagerTrustErrorCode)(int)errorCode. See the Android reference.

Applies to