語言

TelecomManager.GetDefaultOutgoingPhoneAccount(String) 方法

定義

回傳 PhoneAccount ,該 將用於向指定地址 uriScheme發出撥打電話。

[Android.Runtime.Register("getDefaultOutgoingPhoneAccount", "(Ljava/lang/String;)Landroid/telecom/PhoneAccountHandle;", "GetGetDefaultOutgoingPhoneAccount_Ljava_lang_String_Handler", ApiSince=23)]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
public virtual Android.Telecom.PhoneAccountHandle? GetDefaultOutgoingPhoneAccount(string? uriScheme);
[<Android.Runtime.Register("getDefaultOutgoingPhoneAccount", "(Ljava/lang/String;)Landroid/telecom/PhoneAccountHandle;", "GetGetDefaultOutgoingPhoneAccount_Ljava_lang_String_Handler", ApiSince=23)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
abstract member GetDefaultOutgoingPhoneAccount : string -> Android.Telecom.PhoneAccountHandle
override this.GetDefaultOutgoingPhoneAccount : string -> Android.Telecom.PhoneAccountHandle

參數

uriScheme
String

URI 計畫。

傳回

對 PhoneAccountHandle 應的帳號。

屬性

備註

回傳 PhoneAccount ,該 將用於向指定地址 uriScheme發出撥打電話。 這 PhoneAccount 永遠是從調用 #getCallCapablePhoneAccounts()返回的列表成員。 回傳的具體帳號取決於以下優先順序:<ul><li> 如果用戶選擇的預設PhoneAccount支援指定方案,則會回傳。 </li><li> 如果只存在一個支持指定方案的方案 PhoneAccount ,則會回傳。 </li></ul>

若不 PhoneAccount 符合上述條件,則此方法將返回 null。

Java 文件 android.telecom.TelecomManager.getDefaultOutgoingPhoneAccount(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於