PendingIntent.FlagAllowUnsafeImplicitIntent 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.
指示允许在其中 #FLAG_MUTABLE 具有不安全隐式意向的已创建的 PendingIntent 的标志。
[Android.Runtime.Register("FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT", ApiSince=34)]
[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 FlagAllowUnsafeImplicitIntent = 16777216;
[<Android.Runtime.Register("FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.", true)>]
val mutable FlagAllowUnsafeImplicitIntent : Android.App.PendingIntentFlags
字段值
Value = 16777216实现
- 特性
注解
指示允许使用 FLAG_MUTABLE 创建的 PendingIntent 具有不安全的隐式意向的标志。 从Build.VERSION_CODES开始。UPSIDE_DOWN_CAKE,适用于面向 SDK Build.VERSION_CODES的应用。UPSIDE_DOWN_CAKE或更高版本,创建具有FLAG_MUTABLE的 PendingIntent,并且其中的隐式意向将出于安全原因引发 IllegalArgumentException。 若要绕过此检查,请在创建 PendingIntent 时使用FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT。 但是,强烈建议不要使用此标志,并使意向显式或 PendingIntent 不可变,从而使意向安全。
Android 参考。android.app.PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。