SmsManager.GetSmsManagerForSubscriptionId(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與特定訂用帳戶標識碼相關聯的SmsManager實例。
[Android.Runtime.Register("getSmsManagerForSubscriptionId", "(I)Landroid/telephony/SmsManager;", "", ApiSince=22)]
public static Android.Telephony.SmsManager? GetSmsManagerForSubscriptionId (int subId);
[<Android.Runtime.Register("getSmsManagerForSubscriptionId", "(I)Landroid/telephony/SmsManager;", "", ApiSince=22)>]
static member GetSmsManagerForSubscriptionId : int -> Android.Telephony.SmsManager
參數
- subId
- Int32
通常使用 存取的SMS訂用帳戶標識碼 SubscriptionManager
傳回
與訂用帳戶相關聯的 SmsManager 實例
- 屬性
備註
取得與特定訂用帳戶標識碼相關聯的SmsManager實例。
<p class=“note”><strong>Note:</strong> Constructing an SmsManager
in this manner will will never cause an SMS disambiguation dialog to appear, unlike #getDefault()
. </p>
已取代這個成員。 使用 Context#getSystemService Context.getSystemService(SmsManager.class)
。#createForSubscriptionId createForSubscriptionId(subId)
相反
的 android.telephony.SmsManager.getSmsManagerForSubscriptionId(int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。