語言

Notification.Builder.SetPublicVersion(Notification) 方法

定義

提供一個替代通知,其內容應在不安全的上下文中顯示(例如

[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

參數

n
Notification

通知:替換通知,推測部分或全部資訊被遮蔽

傳回

這個 Android.App.Notification.Builder 實例,允許通話串接。

屬性

備註

提供一個替代通知,其內容應在不安全的情境中顯示(例如安全鎖畫面頂部)。 請參見 Notification.visibility 和 Notification.VISIBILITY_PUBLIC。

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

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

適用於