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,必須明確指定 PendingIntents 在建立時的可變性,並以 FLAG_IMMUTABLE 或 FLAG_MUTABLE 來實現。 強烈建議在建立 PendingIntent 時使用FLAG_IMMUTABLE。 FLAG_MUTABLE 應僅在某些功能依賴修改底層意圖時使用,例如任何需要搭配內嵌回覆或氣泡使用的任何待定意圖。
Android 參考資料。android.app.PendingIntent.FLAG_MUTABLE
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。