Notification.Builder.SetPublicVersion(Notification) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一個替代通知,其內容應在不安全的上下文中顯示(例如
[Android.Runtime.Register("setPublicVersion", "(Landroid/app/Notification;)Landroid/app/Notification$Builder;", "GetSetPublicVersion_Landroid_app_Notification_Handler")]
public virtual Android.App.Notification.Builder SetPublicVersion(Android.App.Notification? n);
[<Android.Runtime.Register("setPublicVersion", "(Landroid/app/Notification;)Landroid/app/Notification$Builder;", "GetSetPublicVersion_Landroid_app_Notification_Handler")>]
abstract member SetPublicVersion : Android.App.Notification -> Android.App.Notification.Builder
override this.SetPublicVersion : Android.App.Notification -> Android.App.Notification.Builder
參數
通知:替換通知,推測部分或全部資訊被遮蔽
傳回
這個 Android.App.Notification.Builder 實例,允許通話串接。
- 屬性
備註
提供一個替代通知,其內容應在不安全的情境中顯示(例如安全鎖畫面頂部)。 請參見 Notification.visibility 和 Notification.VISIBILITY_PUBLIC。
Android 參考資料。android.app.Notification.Builder.setPublicVersion
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。