다음을 통해 공유


TelephonyScanManager.NetworkScanCallback.OnError(ScanResultCode) Method

Definition

Informs the user that there is some error about the scan.

[Android.Runtime.Register("onError", "(I)V", "GetOnError_IHandler", ApiSince=28)]
public virtual void OnError (Android.Telephony.ScanResultCode error);
[<Android.Runtime.Register("onError", "(I)V", "GetOnError_IHandler", ApiSince=28)>]
abstract member OnError : Android.Telephony.ScanResultCode -> unit
override this.OnError : Android.Telephony.ScanResultCode -> unit

Parameters

error
ScanResultCode

Error code when the scan is failed, as defined in NetworkScan.

Attributes

Remarks

Informs the user that there is some error about the scan.

This callback will be called whenever there is any error about the scan, and the scan will be terminated. onComplete() will NOT be called.

Java documentation for android.telephony.TelephonyScanManager.NetworkScanCallback.onError(int).

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