TaskStackBuilder.GetPendingIntent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetPendingIntent(Int32, PendingIntentFlags) |
請取得該建商迄今為止完成的專案的啟動 |
| GetPendingIntent(Int32, PendingIntentFlags, Bundle) |
請取得該建商迄今為止完成的專案的啟動 |
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_SHOT、 PendingIntent#FLAG_NO_CREATE、 PendingIntent#FLAG_CANCEL_CURRENT、 PendingIntent#FLAG_UPDATE_CURRENT,或任何由 支援 Intent#fillIn(Intent, int) 的旗標,用以控制實際傳送時可提供的未指定意圖部分。
傳回
所取得的PendingIntent
- 屬性
備註
取得一個待定意圖,以啟動該建商迄今為止建造的專案。
Android 參考資料。android.app.TaskStackBuilder.getPendingIntent
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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_SHOT、 PendingIntent#FLAG_NO_CREATE、 PendingIntent#FLAG_CANCEL_CURRENT、 PendingIntent#FLAG_UPDATE_CURRENT,或任何由 支援 Intent#fillIn(Intent, int) 的旗標,用以控制實際傳送時可提供的未指定意圖部分。
- options
- Bundle
活動開始方式的額外選項。
更多細節請參見 android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)}。
傳回
所取得的PendingIntent
- 屬性
備註
取得一個待定意圖,以啟動該建商迄今為止建造的專案。
Android 參考資料。android.app.TaskStackBuilder.getPendingIntent
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。