TelephonyManager.SendUssdRequest Method

Definition

Sends an Unstructured Supplementary Service Data (USSD) request to the mobile network and informs the caller of the response via the supplied callback.

[Android.Runtime.Register("sendUssdRequest", "(Ljava/lang/String;Landroid/telephony/TelephonyManager$UssdResponseCallback;Landroid/os/Handler;)V", "GetSendUssdRequest_Ljava_lang_String_Landroid_telephony_TelephonyManager_UssdResponseCallback_Landroid_os_Handler_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.CALL_PHONE")]
public virtual void SendUssdRequest (string? ussdRequest, Android.Telephony.TelephonyManager.UssdResponseCallback? callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("sendUssdRequest", "(Ljava/lang/String;Landroid/telephony/TelephonyManager$UssdResponseCallback;Landroid/os/Handler;)V", "GetSendUssdRequest_Ljava_lang_String_Landroid_telephony_TelephonyManager_UssdResponseCallback_Landroid_os_Handler_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.CALL_PHONE")>]
abstract member SendUssdRequest : string * Android.Telephony.TelephonyManager.UssdResponseCallback * Android.OS.Handler -> unit
override this.SendUssdRequest : string * Android.Telephony.TelephonyManager.UssdResponseCallback * Android.OS.Handler -> unit

Parameters

ussdRequest
String

the USSD command to be executed.

callback
TelephonyManager.UssdResponseCallback

called by the framework to inform the caller of the result of executing the USSD request (see UssdResponseCallback).

handler
Handler

the Handler to run the request on.

Attributes

Remarks

Java documentation for android.telephony.TelephonyManager.sendUssdRequest(java.lang.String, android.telephony.UssdResponseCallback, android.os.Handler).

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