TelephonyManager.SendVisualVoicemailSms 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.
Send a visual voicemail SMS.
[Android.Runtime.Register("sendVisualVoicemailSms", "(Ljava/lang/String;ILjava/lang/String;Landroid/app/PendingIntent;)V", "GetSendVisualVoicemailSms_Ljava_lang_String_ILjava_lang_String_Landroid_app_PendingIntent_Handler", ApiSince=26)]
public virtual void SendVisualVoicemailSms (string? number, int port, string? text, Android.App.PendingIntent? sentIntent);
[<Android.Runtime.Register("sendVisualVoicemailSms", "(Ljava/lang/String;ILjava/lang/String;Landroid/app/PendingIntent;)V", "GetSendVisualVoicemailSms_Ljava_lang_String_ILjava_lang_String_Landroid_app_PendingIntent_Handler", ApiSince=26)>]
abstract member SendVisualVoicemailSms : string * int * string * Android.App.PendingIntent -> unit
override this.SendVisualVoicemailSms : string * int * string * Android.App.PendingIntent -> unit
Parameters
- number
- String
The destination number.
- port
- Int32
The destination port for data SMS, or 0 for text SMS.
- text
- String
The message content. For data sms, it will be encoded as a UTF-8 byte stream.
- sentIntent
- PendingIntent
The sent intent passed to the SmsManager
- Attributes
Remarks
Send a visual voicemail SMS. The caller must be the current default dialer. A VisualVoicemailService
uses this method to send a command via SMS to the carrier's visual voicemail server. Some examples for carriers using the OMTP standard include activating and deactivating visual voicemail, or requesting the current visual voicemail provisioning status. See the OMTP Visual Voicemail specification for more information on the format of these SMS messages.
Requires Permission: android.Manifest.permission#SEND_SMS SEND_SMS
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.