語言

PendingIntent.FlagAllowUnsafeImplicitIntent 欄位

定義

警告

This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.

標記表示已建立的 PendingIntent #FLAG_MUTABLE 允許包含不安全的隱含意圖。

[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

實作

屬性

備註

標記表示已建立的 PendingIntent 與 FLAG_MUTABLE 允許包含不安全的隱含意圖。 從Build.VERSION_CODES開始。UPSIDE_DOWN_CAKE,針對針對 SDK Build.VERSION_CODES 的應用程式。UPSIDE_DOWN_CAKE或更高,若建立包含 FLAG_MUTABLE 且隱含意圖的待定意圖,將因安全理由拋出 IllegalArgumentException。 要繞過此檢查,建立 PendingIntent 時使用FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT。 然而,強烈建議不要使用此標誌,避免將意圖明確化或將待定意圖設為不可變,從而使意圖安全。

Android 參考資料。android.app.PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT

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

適用於