Share via


TelephonyManager.CellInfoCallback.OnError Method

Definition

Error response to TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate().

[Android.Runtime.Register("onError", "(ILjava/lang/Throwable;)V", "GetOnError_ILjava_lang_Throwable_Handler", ApiSince=29)]
public virtual void OnError (Android.Telephony.TelephonyManagerErrorCode errorCode, Java.Lang.Throwable? detail);
[<Android.Runtime.Register("onError", "(ILjava/lang/Throwable;)V", "GetOnError_ILjava_lang_Throwable_Handler", ApiSince=29)>]
abstract member OnError : Android.Telephony.TelephonyManagerErrorCode * Java.Lang.Throwable -> unit
override this.OnError : Android.Telephony.TelephonyManagerErrorCode * Java.Lang.Throwable -> unit

Parameters

errorCode
TelephonyManagerErrorCode

an error code indicating the type of failure.

detail
Throwable

a Throwable object with additional detail regarding the failure if available, otherwise null.

Attributes

Remarks

Error response to TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate().

Invoked when an error condition prevents updated CellInfo from being fetched and returned from the modem. Callers of requestCellInfoUpdate() should override this function to receive detailed status information in the event of an error. By default, this function will invoke onCellInfo() with null.

Java documentation for android.telephony.TelephonyManager.CellInfoCallback.onError(int, java.lang.Throwable).

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