語言

Notification.Builder.CreateBigContentView 方法

定義

此方法在 API 等級 35 中被棄用。

[Android.Runtime.Register("createBigContentView", "()Landroid/widget/RemoteViews;", "GetCreateBigContentViewHandler", ApiSince=24)]
public virtual Android.Widget.RemoteViews? CreateBigContentView();
[<Android.Runtime.Register("createBigContentView", "()Landroid/widget/RemoteViews;", "GetCreateBigContentViewHandler", ApiSince=24)>]
abstract member CreateBigContentView : unit -> Android.Widget.RemoteViews
override this.CreateBigContentView : unit -> Android.Widget.RemoteViews

傳回

屬性

備註

此方法在 API 等級 35 中被棄用。 出於效能與系統健康考量,系統介面在向使用者呈現通知時,此 API 不再被要求直接使用。 雖然此方法回傳的 UI 仍會代表所建置通知的內容,但可能與系統的視覺風格有所不同。 注意:此 API 一直有嚴重限制;例如它不支援任何互動性,忽略應用程式主題,呼叫時會硬編碼系統主題的顏色,並且在主執行緒中進行點陣圖解碼,這可能導致使用者介面卡頓。

建立一個 RemoteViews,代表展開後的通知版面。

Android 參考資料。android.app.Notification.Builder.createBigContentView

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

適用於