語言

PhoneAccount.Builder.SetIcon(Icon) 方法

定義

設定圖示。

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)Landroid/telecom/PhoneAccount$Builder;", "GetSetIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual Android.Telecom.PhoneAccount.Builder SetIcon(Android.Graphics.Drawables.Icon icon);
[<Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)Landroid/telecom/PhoneAccount$Builder;", "GetSetIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetIcon : Android.Graphics.Drawables.Icon -> Android.Telecom.PhoneAccount.Builder
override this.SetIcon : Android.Graphics.Drawables.Icon -> Android.Telecom.PhoneAccount.Builder

參數

icon
Icon

圖示要設定。

傳回

屬性

備註

設定圖示。 請參考 PhoneAccount.getIcon。

注意:若無法將圖示寫入記憶體,則使用 IllegalArgumentException。 此檢查會在透過 TelecomManager.registerPhoneAccount(PhoneAccount) 註冊電話帳戶時執行。

Android 參考資料。android.telecom.PhoneAccount.Builder.setIcon

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

適用於