PendingIntent.FlagMutable 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.
指示创建的 PendingIntent 应可变的标志。
[Android.Runtime.Register("FLAG_MUTABLE", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.", true)]
public const Android.App.PendingIntentFlags FlagMutable = 33554432;
[<Android.Runtime.Register("FLAG_MUTABLE", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.", true)>]
val mutable FlagMutable : Android.App.PendingIntentFlags
字段值
Value = 33554432实现
- 特性
注解
指示创建的 PendingIntent 应可变的标志。 此标志不能与FLAG_IMMUTABLE结合使用。 直到Build.VERSION_CODES。默认情况下,假定 R、PendingIntents 是可变的,除非设置了FLAG_IMMUTABLE。 从Build.VERSION_CODES开始。S,需要使用 FLAG_IMMUTABLE 或FLAG_MUTABLE显式指定在创建时 PendingIntents 的可变性。 强烈建议在创建 PendingIntent 时使用FLAG_IMMUTABLE。 仅当某些功能依赖于修改基础意向(例如需要与内联答复或气泡一起使用的任何 PendingIntent)时,才应使用FLAG_MUTABLE。
Android 参考。android.app.PendingIntent.FLAG_MUTABLE
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。