다음을 통해 공유


SmsManager.SendDataMessage 메서드

정의

주의

deprecated

데이터 기반 SMS를 특정 애플리케이션 포트로 보냅니다.

[Android.Runtime.Register("sendDataMessage", "(Ljava/lang/String;Ljava/lang/String;S[BLandroid/app/PendingIntent;Landroid/app/PendingIntent;)V", "")]
[System.Obsolete("deprecated")]
public void SendDataMessage (string? destinationAddress, string? scAddress, short destinationPort, byte[]? data, Android.App.PendingIntent? sentIntent, Android.App.PendingIntent? deliveryIntent);
[<Android.Runtime.Register("sendDataMessage", "(Ljava/lang/String;Ljava/lang/String;S[BLandroid/app/PendingIntent;Landroid/app/PendingIntent;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SendDataMessage : string * string * int16 * byte[] * Android.App.PendingIntent * Android.App.PendingIntent -> unit

매개 변수

destinationAddress
String

메시지를 보낼 주소

scAddress
String

는 현재 기본 SMSC를 사용하는 서비스 센터 주소 또는 null입니다.

destinationPort
Int16

메시지를 전달할 포트

data
Byte[]

보낼 메시지의 본문

sentIntent
PendingIntent

NULL PendingIntent 이 아니면 메시지가 자동으로 전송되거나 실패할 때 브로드캐스트됩니다. 결과 코드는 Activity.RESULT_OK 성공 또는 다음 오류 RESULT_ERROR_GENERIC_FAILURERESULT_ERROR_RADIO_OFFRESULT_ERROR_NULL_PDU중 하나입니다. 애플리케이션별 기반 SMS 컨트롤은 sentIntent를 확인합니다. sentIntent가 NULL인 경우 호출자는 알 수 없는 모든 애플리케이션에 대해 검사되므로 확인 기간에 더 적은 수의 SMS가 전송됩니다.

deliveryIntent
PendingIntent

NULL PendingIntent 이 아니면 메시지가 받는 사람에게 전달될 때 브로드캐스트됩니다. 상태 보고서의 원시 pdu는 확장 데이터("pdu")에 있습니다.

특성

예외

destinationAddress 또는 데이터가 비어 있는 경우

설명

데이터 기반 SMS를 특정 애플리케이션 포트로 보냅니다.

이 멤버는 더 이상 사용되지 않습니다. android.telephony.SmsManager를 사용합니다.

에 대한 android.telephony.gsm.SmsManager.sendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상