Share via


VisualVoicemailService.OnSmsReceived Method

Definition

Called when a SMS matching the VisualVoicemailSmsFilterSettings set by TelephonyManager#setVisualVoicemailSmsFilterSettings(VisualVoicemailSmsFilterSettings) is received.

[Android.Runtime.Register("onSmsReceived", "(Landroid/telephony/VisualVoicemailService$VisualVoicemailTask;Landroid/telephony/VisualVoicemailSms;)V", "GetOnSmsReceived_Landroid_telephony_VisualVoicemailService_VisualVoicemailTask_Landroid_telephony_VisualVoicemailSms_Handler", ApiSince=26)]
public abstract void OnSmsReceived (Android.Telephony.VisualVoicemailService.VisualVoicemailTask? task, Android.Telephony.VisualVoicemailSms? sms);
[<Android.Runtime.Register("onSmsReceived", "(Landroid/telephony/VisualVoicemailService$VisualVoicemailTask;Landroid/telephony/VisualVoicemailSms;)V", "GetOnSmsReceived_Landroid_telephony_VisualVoicemailService_VisualVoicemailTask_Landroid_telephony_VisualVoicemailSms_Handler", ApiSince=26)>]
abstract member OnSmsReceived : Android.Telephony.VisualVoicemailService.VisualVoicemailTask * Android.Telephony.VisualVoicemailSms -> unit

Parameters

task
VisualVoicemailService.VisualVoicemailTask

The task representing this event. VisualVoicemailTask#finish() must be called when the task is completed.

sms
VisualVoicemailSms

The content of the received SMS.

Attributes

Remarks

Java documentation for android.telephony.VisualVoicemailService.onSmsReceived(android.telephony.VisualVoicemailTask, android.telephony.VisualVoicemailSms).

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