Language

CompanionDeviceManager.TrustPairingCallback.OnFailure Method

Definition

Invoked if the trust pairing could not be created or explicitly failed.

[Android.Runtime.Register("onFailure", "(I)V", "GetOnFailure_IHandler", ApiSince=37)]
public abstract void OnFailure(Android.Companion.CompanionDeviceResult errorCode);
[<Android.Runtime.Register("onFailure", "(I)V", "GetOnFailure_IHandler", ApiSince=37)>]
abstract member OnFailure : Android.Companion.CompanionDeviceResult -> unit

Parameters

errorCode
CompanionDeviceResult

One of: <ul> <li>CompanionDeviceManager#ERROR_TRUST_UNKNOWN<li>CompanionDeviceManager#ERROR_TRUST_PAIRING_TRANSPORT_NOT_ATTACHED<li>CompanionDeviceManager#ERROR_TRUST_PAIRING_CANCELED<li>CompanionDeviceManager#ERROR_TRUST_PAIRING_FAILED_TO_CREATE_PAIRING_DIALOG<li>CompanionDeviceManager#ERROR_TRUST_PAIRING_PIN_CODE_NOT_MATCHING<li>CompanionDeviceManager#ERROR_TRUST_PAIRING_ASSOCIATION_DOES_NOT_EXIST<li>CompanionDeviceManager#ERROR_TRUST_OUT_OF_BAND_PAIRING_FAILED</ul>

Attributes

Remarks

Invoked if the trust pairing could not be created or explicitly failed.

Android reference for android.companion.CompanionDeviceManager.TrustPairingCallback.onFailure.

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.

Applies to