Aracılığıyla paylaş


TelephonyManager.UssdResponseCallback.OnReceiveUssdResponseFailed Method

Definition

Called when a USSD request has failed to complete.

[Android.Runtime.Register("onReceiveUssdResponseFailed", "(Landroid/telephony/TelephonyManager;Ljava/lang/String;I)V", "GetOnReceiveUssdResponseFailed_Landroid_telephony_TelephonyManager_Ljava_lang_String_IHandler", ApiSince=26)]
public virtual void OnReceiveUssdResponseFailed (Android.Telephony.TelephonyManager? telephonyManager, string? request, Android.Telephony.UssdResultCode failureCode);
[<Android.Runtime.Register("onReceiveUssdResponseFailed", "(Landroid/telephony/TelephonyManager;Ljava/lang/String;I)V", "GetOnReceiveUssdResponseFailed_Landroid_telephony_TelephonyManager_Ljava_lang_String_IHandler", ApiSince=26)>]
abstract member OnReceiveUssdResponseFailed : Android.Telephony.TelephonyManager * string * Android.Telephony.UssdResultCode -> unit
override this.OnReceiveUssdResponseFailed : Android.Telephony.TelephonyManager * string * Android.Telephony.UssdResultCode -> unit

Parameters

telephonyManager
TelephonyManager

the TelephonyManager the callback is registered to.

request
String

the USSD request sent to the mobile network.

failureCode
UssdResultCode

failure code indicating why the request failed. Will be either TelephonyManager#USSD_RETURN_FAILURE or TelephonyManager#USSD_ERROR_SERVICE_UNAVAIL.

Attributes

Remarks

Called when a USSD request has failed to complete.

Java documentation for android.telephony.TelephonyManager.UssdResponseCallback.onReceiveUssdResponseFailed(android.telephony.TelephonyManager, java.lang.String, 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