Notification.BubbleMetadata.Builder.SetIcon(Icon) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定泡泡圖示。
[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetIcon(Android.Graphics.Drawables.Icon icon);
[<Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.BubbleMetadata.Builder
參數
- icon
- Icon
圖示:此值不能為空值。
傳回
這個 Android.App.Notification.BubbleMetadata.Builder 實例,允許通話串接。
- 屬性
備註
設定泡泡圖示。 只有當泡泡是透過 Builder.Builder(PendingIntent,Icon)建立時才可以使用。 當泡泡收合時,圖示會用來代表。 圖示應代表泡泡內的內容。 如果你的應用程式產生多個泡泡,圖示應該對每個泡泡都獨一無二。
建議使用類型為Icon.TYPE_URI或Icon.TYPE_URI_ADAPTIVE_BITMAP的圖示
拋出:如果這個建構器是透過 Builder.Builder(String) 建立的,則使用 IllegalStateException。
拋出:若圖示為 null,則使用 NullPointerException。
Android 參考資料。android.app.Notification.BubbleMetadata.Builder.setIcon
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。