共用方式為


TaskStackBuilder.GetPendingIntent 方法

定義

多載

GetPendingIntent(Int32, PendingIntentFlags)

PendingIntent取得 ,以啟動此產生器到目前為止所建構的工作。

GetPendingIntent(Int32, PendingIntentFlags, Bundle)

PendingIntent取得 ,以啟動此產生器到目前為止所建構的工作。

GetPendingIntent(Int32, PendingIntentFlags)

PendingIntent取得 ,以啟動此產生器到目前為止所建構的工作。

[Android.Runtime.Register("getPendingIntent", "(II)Landroid/app/PendingIntent;", "GetGetPendingIntent_IIHandler")]
public virtual Android.App.PendingIntent? GetPendingIntent (int requestCode, Android.App.PendingIntentFlags flags);
[<Android.Runtime.Register("getPendingIntent", "(II)Landroid/app/PendingIntent;", "GetGetPendingIntent_IIHandler")>]
abstract member GetPendingIntent : int * Android.App.PendingIntentFlags -> Android.App.PendingIntent
override this.GetPendingIntent : int * Android.App.PendingIntentFlags -> Android.App.PendingIntent

參數

requestCode
Int32

寄件者的私人要求碼

flags
PendingIntentFlags

可以是 PendingIntent#FLAG_ONE_SHOTPendingIntent#FLAG_NO_CREATEPendingIntent#FLAG_CANCEL_CURRENTPendingIntent#FLAG_UPDATE_CURRENT或 支援 Intent#fillIn(Intent, int) 的任何旗標,以控制實際傳送發生時,可以提供哪些未指定的意圖部分。

傳回

取得的PendingIntent

屬性

備註

PendingIntent取得 ,以啟動此產生器到目前為止所建構的工作。

android.app.TaskStackBuilder.getPendingIntent(int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

GetPendingIntent(Int32, PendingIntentFlags, Bundle)

PendingIntent取得 ,以啟動此產生器到目前為止所建構的工作。

[Android.Runtime.Register("getPendingIntent", "(IILandroid/os/Bundle;)Landroid/app/PendingIntent;", "GetGetPendingIntent_IILandroid_os_Bundle_Handler")]
public virtual Android.App.PendingIntent? GetPendingIntent (int requestCode, Android.App.PendingIntentFlags flags, Android.OS.Bundle? options);
[<Android.Runtime.Register("getPendingIntent", "(IILandroid/os/Bundle;)Landroid/app/PendingIntent;", "GetGetPendingIntent_IILandroid_os_Bundle_Handler")>]
abstract member GetPendingIntent : int * Android.App.PendingIntentFlags * Android.OS.Bundle -> Android.App.PendingIntent
override this.GetPendingIntent : int * Android.App.PendingIntentFlags * Android.OS.Bundle -> Android.App.PendingIntent

參數

requestCode
Int32

寄件者的私人要求碼

flags
PendingIntentFlags

可以是 PendingIntent#FLAG_ONE_SHOTPendingIntent#FLAG_NO_CREATEPendingIntent#FLAG_CANCEL_CURRENTPendingIntent#FLAG_UPDATE_CURRENT或 支援 Intent#fillIn(Intent, int) 的任何旗標,以控制實際傳送發生時,可以提供哪些未指定的意圖部分。

options
Bundle

應如何啟動活動的其他選項。 如需詳細資訊,請參閱 android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)} 。

傳回

取得的PendingIntent

屬性

備註

PendingIntent取得 ,以啟動此產生器到目前為止所建構的工作。

android.app.TaskStackBuilder.getPendingIntent(int, int, android.os.Bundle)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於