Lingua

SmsManager.SendTextMessage Metodo

Definizione

Attenzione

deprecated

Inviare un SMS basato su testo.

[Android.Runtime.Register("sendTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)V", "")]
[System.Obsolete("deprecated")]
public void SendTextMessage(string? destinationAddress, string? scAddress, string? text, Android.App.PendingIntent? sentIntent, Android.App.PendingIntent? deliveryIntent);
[<Android.Runtime.Register("sendTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SendTextMessage : string * string * string * Android.App.PendingIntent * Android.App.PendingIntent -> unit

Parametri

destinationAddress
String

indirizzo a cui inviare il messaggio

scAddress
String

è l'indirizzo del centro servizi o null per usare l'SMSC predefinito corrente

text
String

corpo del messaggio da inviare

sentIntent
PendingIntent

se non NULL viene PendingIntent trasmesso quando il messaggio viene inviato correttamente o non è riuscito. Il codice del risultato sarà Activity.RESULT_OK per esito positivo o uno di questi errori: RESULT_ERROR_GENERIC_FAILURERESULT_ERROR_RADIO_OFFRESULT_ERROR_NULL_PDU. Il controllo SMS basato su ogni applicazione controlla sentIntent. Se sentIntent è NULL, il chiamante verrà controllato su tutte le applicazioni sconosciute, causando l'invio di un numero minore di SMS nel periodo di controllo.

deliveryIntent
PendingIntent

se non NULL viene PendingIntent trasmesso quando il messaggio viene recapitato al destinatario. Il pdu non elaborato del report di stato si trova nei dati estesi ("pdu").

Attributi

Eccezioni

se destinationAddress o text sono vuoti

Commenti

Inviare un SMS basato su testo.

Questo membro è deprecato. Usare android.telephony.SmsManager.

per android.telephony.gsm.SmsManager.sendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a