CompanionDeviceManager.Callback.OnFailure 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.
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.
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.
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.
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.
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.