語言

ActivityOptions.SetPendingIntentCreatorBackgroundActivityStartMode 方法

定義

允許 a PendingIntent 利用其創作者的特權來啟動背景活動。

[Android.Runtime.Register("setPendingIntentCreatorBackgroundActivityStartMode", "(I)Landroid/app/ActivityOptions;", "GetSetPendingIntentCreatorBackgroundActivityStartMode_IHandler", ApiSince=34)]
public virtual Android.App.ActivityOptions SetPendingIntentCreatorBackgroundActivityStartMode(Android.App.BackgroundActivityStartMode mode);
[<Android.Runtime.Register("setPendingIntentCreatorBackgroundActivityStartMode", "(I)Landroid/app/ActivityOptions;", "GetSetPendingIntentCreatorBackgroundActivityStartMode_IHandler", ApiSince=34)>]
abstract member SetPendingIntentCreatorBackgroundActivityStartMode : Android.App.BackgroundActivityStartMode -> Android.App.ActivityOptions
override this.SetPendingIntentCreatorBackgroundActivityStartMode : Android.App.BackgroundActivityStartMode -> Android.App.ActivityOptions

參數

mode
BackgroundActivityStartMode

模式設定

傳回

這個 Android.App.ActivityOptions 實例,允許通話串接。

屬性

備註

允許 PendingIntent 利用其創建者的權限啟動背景活動。

Android 參考資料。android.app.ActivityOptions.setPendingIntentCreatorBackgroundActivityStartMode

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

適用於