ActivityOptions.PendingIntentBackgroundActivityLaunchAllowed 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果呼叫者能啟動背景活動,則允許在背景啟動 Get PendingIntent 活動。 -或- 若呼叫者能啟動背景活動,則允許在背景啟動 PendingIntent 活動。
public virtual bool PendingIntentBackgroundActivityLaunchAllowed { [Android.Runtime.Register("isPendingIntentBackgroundActivityLaunchAllowed", "()Z", "GetIsPendingIntentBackgroundActivityLaunchAllowedHandler", ApiSince=33)] get; [Android.Runtime.Register("setPendingIntentBackgroundActivityLaunchAllowed", "(Z)V", "GetSetPendingIntentBackgroundActivityLaunchAllowed_ZHandler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("isPendingIntentBackgroundActivityLaunchAllowed", "()Z", "GetIsPendingIntentBackgroundActivityLaunchAllowedHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setPendingIntentBackgroundActivityLaunchAllowed", "(Z)V", "GetSetPendingIntentBackgroundActivityLaunchAllowed_ZHandler", ApiSince=33)>]
member this.PendingIntentBackgroundActivityLaunchAllowed : bool with get, set
屬性值
- 屬性
備註
此方法在 API 等級 34 中被棄用。 使用 getPendingIntentBackgroundActivityStartMode() 因為針對 Build.VERSION_CODES 的應用程式。UPSIDE_DOWN_CAKE或更高,若該值未明確設定,可能與實際行為不符。
如果呼叫者能啟動背景活動,則允許在背景啟動 Get PendingIntent 活動。
Android 參考資料。android.app.ActivityOptions.isPendingIntentBackgroundActivityLaunchAllowed
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。