CompanionDeviceManager.Callback.OnFailure Method

Definition

Overloads

OnFailure(ICharSequence)

Invoked if the association could not be created.

OnFailure(String)

Invoked if the association could not be created.

OnFailure(Int32, ICharSequence)

Invoked if the association could not be created.

OnFailure(Int32, String)

Invoked if the association could not be created.

OnFailure(ICharSequence)

Invoked if the association could not be created.

[Android.Runtime.Register("onFailure", "(Ljava/lang/CharSequence;)V", "GetOnFailure_Ljava_lang_CharSequence_Handler", ApiSince=26)]
public abstract void OnFailure(Java.Lang.ICharSequence? error);
[<Android.Runtime.Register("onFailure", "(Ljava/lang/CharSequence;)V", "GetOnFailure_Ljava_lang_CharSequence_Handler", ApiSince=26)>]
abstract member OnFailure : Java.Lang.ICharSequence -> unit

Parameters

error
ICharSequence

error message.

Attributes

Remarks

Invoked if the association could not be created.

Java documentation for android.companion.CompanionDeviceManager.Callback.onFailure(java.lang.CharSequence).

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

OnFailure(String)

Invoked if the association could not be created.

public void OnFailure(string? error);
member this.OnFailure : string -> unit

Parameters

error
String

error message.

Remarks

Invoked if the association could not be created.

Java documentation for android.companion.CompanionDeviceManager.Callback.onFailure(java.lang.CharSequence).

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

OnFailure(Int32, ICharSequence)

Invoked if the association could not be created.

[Android.Runtime.Register("onFailure", "(ILjava/lang/CharSequence;)V", "GetOnFailure_ILjava_lang_CharSequence_Handler", ApiSince=36)]
public virtual void OnFailure(int errorCode, Java.Lang.ICharSequence? error);
[<Android.Runtime.Register("onFailure", "(ILjava/lang/CharSequence;)V", "GetOnFailure_ILjava_lang_CharSequence_Handler", ApiSince=36)>]
abstract member OnFailure : int * Java.Lang.ICharSequence -> unit
override this.OnFailure : int * Java.Lang.ICharSequence -> unit

Parameters

errorCode
Int32

indicate the particular error code why the association could not be created.

error
ICharSequence

error message.

Attributes

Remarks

Invoked if the association could not be created.

Please note that both #onFailure(CharSequence error) and this API will be called if the association could not be created.

Java documentation for android.companion.CompanionDeviceManager.Callback.onFailure(int, java.lang.CharSequence).

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

OnFailure(Int32, String)

Invoked if the association could not be created.

public void OnFailure(int errorCode, string? error);
member this.OnFailure : int * string -> unit

Parameters

errorCode
Int32

indicate the particular error code why the association could not be created.

error
String

error message.

Remarks

Invoked if the association could not be created.

Please note that both #onFailure(CharSequence error) and this API will be called if the association could not be created.

Java documentation for android.companion.CompanionDeviceManager.Callback.onFailure(int, java.lang.CharSequence).

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