CompanionDeviceService.OnDeviceTrustFailure Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by the system when trust session establishment or trust pairing fails.
[Android.Runtime.Register("onDeviceTrustFailure", "(Landroid/companion/AssociationInfo;I)V", "GetOnDeviceTrustFailure_Landroid_companion_AssociationInfo_IHandler", ApiSince=37)]
public virtual void OnDeviceTrustFailure(Android.Companion.AssociationInfo associationInfo, Android.Companion.CompanionDeviceManagerTrustErrorCode errorCode);
[<Android.Runtime.Register("onDeviceTrustFailure", "(Landroid/companion/AssociationInfo;I)V", "GetOnDeviceTrustFailure_Landroid_companion_AssociationInfo_IHandler", ApiSince=37)>]
abstract member OnDeviceTrustFailure : Android.Companion.AssociationInfo * Android.Companion.CompanionDeviceManagerTrustErrorCode -> unit
override this.OnDeviceTrustFailure : Android.Companion.AssociationInfo * Android.Companion.CompanionDeviceManagerTrustErrorCode -> unit
Parameters
- associationInfo
- AssociationInfo
The association for which trust establishment failed. Note that
if trust resumption failed, this AssociationInfo will reflect
that the device is no longer trusted (i.e.
AssociationInfo#isTrusted() will return false).
- errorCode
- CompanionDeviceManagerTrustErrorCode
The error code indicating the reason for failure. 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_RESUMPTION_FAILED<li>CompanionDeviceManager#ERROR_TRUST_OUT_OF_BAND_PAIRING_FAILED</ul>
- Attributes