Share via


TelephonyManager.UssdResponseCallback.OnReceiveUssdResponse Method

Definition

Overloads

OnReceiveUssdResponse(TelephonyManager, String, ICharSequence)

Called when a USSD request has succeeded.

OnReceiveUssdResponse(TelephonyManager, String, String)

Called when a USSD request has succeeded.

OnReceiveUssdResponse(TelephonyManager, String, ICharSequence)

Called when a USSD request has succeeded.

[Android.Runtime.Register("onReceiveUssdResponse", "(Landroid/telephony/TelephonyManager;Ljava/lang/String;Ljava/lang/CharSequence;)V", "GetOnReceiveUssdResponse_Landroid_telephony_TelephonyManager_Ljava_lang_String_Ljava_lang_CharSequence_Handler", ApiSince=26)]
public virtual void OnReceiveUssdResponse (Android.Telephony.TelephonyManager? telephonyManager, string? request, Java.Lang.ICharSequence? response);
[<Android.Runtime.Register("onReceiveUssdResponse", "(Landroid/telephony/TelephonyManager;Ljava/lang/String;Ljava/lang/CharSequence;)V", "GetOnReceiveUssdResponse_Landroid_telephony_TelephonyManager_Ljava_lang_String_Ljava_lang_CharSequence_Handler", ApiSince=26)>]
abstract member OnReceiveUssdResponse : Android.Telephony.TelephonyManager * string * Java.Lang.ICharSequence -> unit
override this.OnReceiveUssdResponse : Android.Telephony.TelephonyManager * string * Java.Lang.ICharSequence -> unit

Parameters

telephonyManager
TelephonyManager

the TelephonyManager the callback is registered to.

request
String

the USSD request sent to the mobile network.

response
ICharSequence

the response to the USSD request provided by the mobile network.

Attributes

Remarks

Called when a USSD request has succeeded. The response contains the USSD response received from the network. The calling app can choose to either display the response to the user or perform some operation based on the response.

USSD responses are unstructured text and their content is determined by the mobile network operator.

Java documentation for android.telephony.TelephonyManager.UssdResponseCallback.onReceiveUssdResponse(android.telephony.TelephonyManager, java.lang.String, java.lang.CharSequence).

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

OnReceiveUssdResponse(TelephonyManager, String, String)

Called when a USSD request has succeeded.

public void OnReceiveUssdResponse (Android.Telephony.TelephonyManager? telephonyManager, string? request, string? response);
member this.OnReceiveUssdResponse : Android.Telephony.TelephonyManager * string * string -> unit

Parameters

telephonyManager
TelephonyManager

the TelephonyManager the callback is registered to.

request
String

the USSD request sent to the mobile network.

response
String

the response to the USSD request provided by the mobile network.

Remarks

Called when a USSD request has succeeded. The response contains the USSD response received from the network. The calling app can choose to either display the response to the user or perform some operation based on the response.

USSD responses are unstructured text and their content is determined by the mobile network operator.

Java documentation for android.telephony.TelephonyManager.UssdResponseCallback.onReceiveUssdResponse(android.telephony.TelephonyManager, java.lang.String, java.lang.CharSequence).

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