RemoteViews.RemoteResponse.FromFillInIntent(Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用集合(例如,列表檢視、堆疊檢視等)在小工具中,對個別項目設定 PendingIntents 成本非常高,因此不建議。 取而代之的是,可以在集合中設定單一的 PendingIntent 範本,詳見 RemoteViews.setPendingIntentTemplate(int,PendingIntent) ,並且可透過對該項目設定 fillInint 來區分該項目的點擊動作。 fillIntent 會與 PendingIntent 範本結合,以確定當項目被點擊時執行的最終意圖。 運作方式如下:任何在 PendingIntent 範本中留空但由 fillInint 提供的欄位都會被覆寫,並使用所產生的 PendingIntent。 PendingIntent 範本的其餘部分會被填入 fillInint 中設定的相關欄位。 詳情請參見 Intent.fillIn(Intent,int)。 建立一個回應,並將一個待處理的意圖作為回應的一部分。 意圖的來源邊界(Intent.getSourceBounds() 會設為目標視圖在螢幕空間中的邊界。 請注意,任何與 mPendingIntent 相關的活動選項,在開始 intent 前可能會被覆寫。 另請參閱:
[Android.Runtime.Register("fromFillInIntent", "(Landroid/content/Intent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)]
public static Android.Widget.RemoteViews.RemoteResponse FromFillInIntent(Android.Content.Intent fillIntent);
[<Android.Runtime.Register("fromFillInIntent", "(Landroid/content/Intent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)>]
static member FromFillInIntent : Android.Content.Intent -> Android.Widget.RemoteViews.RemoteResponse
參數
- fillIntent
- Intent
意圖:將與父母的待定意圖結合,以判斷回應行為。 此值不可能是空值。
傳回
此值不可能是空值。
- 屬性
備註
Java 文件 RemoteViews.RemoteResponse。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。