NotificationManager.CanPostPromotedNotifications 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回调用应用的正确格式通知是否可以以提升的格式显示,这可能会导致更高的排名、其他表面的外观和更丰富的演示文稿。
[Android.Runtime.Register("canPostPromotedNotifications", "()Z", "GetCanPostPromotedNotificationsHandler", ApiSince=36)]
public virtual bool CanPostPromotedNotifications();
[<Android.Runtime.Register("canPostPromotedNotifications", "()Z", "GetCanPostPromotedNotificationsHandler", ApiSince=36)>]
abstract member CanPostPromotedNotifications : unit -> bool
override this.CanPostPromotedNotifications : unit -> bool
返回
- 特性
注解
返回调用应用的正确格式通知是否可以以提升的格式显示,这可能会导致更高的排名、其他表面的外观和更丰富的演示文稿。 应用可以通过将用户发送到与系统意向操作Settings.ACTION_APP_NOTIFICATION_PROMOTION_SETTINGS匹配的活动来请求此权限。
Android 参考。android.app.NotificationManager.canPostPromotedNotifications
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。