SmsManager.SendMultipartTextMessage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
發送多部分的簡訊簡訊。
[Android.Runtime.Register("sendMultipartTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V", "")]
[System.Obsolete("deprecated")]
public void SendMultipartTextMessage(string? destinationAddress, string? scAddress, System.Collections.Generic.IList<string>? parts, System.Collections.Generic.IList<Android.App.PendingIntent>? sentIntents, System.Collections.Generic.IList<Android.App.PendingIntent>? deliveryIntents);
[<Android.Runtime.Register("sendMultipartTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SendMultipartTextMessage : string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Android.App.PendingIntent> * System.Collections.Generic.IList<Android.App.PendingIntent> -> unit
參數
- destinationAddress
- String
要傳送訊息的地址
- scAddress
- String
是服務中心地址或空,使用當前預設的 SMSC
- sentIntents
- IList<PendingIntent>
若非空,則 S ArrayListPendingIntent(每個訊息部分各一個)在對應訊息部分已傳送時廣播。
結果碼會顯示Activity.RESULT_OK成功,或以下其中一種錯誤:RESULT_ERROR_GENERIC_FAILURERESULT_ERROR_RADIO_OFFRESULT_ERROR_NULL_PDU 。
基於每個應用程式的簡訊控制檢查是發送意圖。 若 sentIntent 為 NULL,呼叫者將被檢查所有未知應用程式,導致檢查期間發送的簡訊數量減少。
- deliveryIntents
- IList<PendingIntent>
若非空,則 ArrayList S PendingIntent(每個訊息部分各一個)在對應訊息部分送達接收者時廣播。 狀態報告的原始 PDU 則在擴展資料(「pdu」)中。
- 屬性
備註
發送多部分的簡訊簡訊。 被callee應該已經透過呼叫 divideMessage,將訊息分割成正確大小的部分。
此會員已被棄用。 使用 android.telephony.SmsManager。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。