TelephonyManager.CellInfoCallback.OnError 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.
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.
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.