RemoteViews.RemoteResponse.FromPendingIntent(PendingIntent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個回應,並將一個待處理的意圖作為回應的一部分。 意圖的來源邊界(Intent.getSourceBounds() 會設為目標視圖在螢幕空間中的邊界。 請注意,任何與 mPendingIntent 相關的活動選項,在開始 intent 前可能會被覆寫。
[Android.Runtime.Register("fromPendingIntent", "(Landroid/app/PendingIntent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)]
public static Android.Widget.RemoteViews.RemoteResponse FromPendingIntent(Android.App.PendingIntent pendingIntent);
[<Android.Runtime.Register("fromPendingIntent", "(Landroid/app/PendingIntent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)>]
static member FromPendingIntent : Android.App.PendingIntent -> Android.Widget.RemoteViews.RemoteResponse
參數
- pendingIntent
- PendingIntent
PendingIntent:作為回應一部分要發送的PendingIntent。 此值不可能是空值。
傳回
此值不可能是空值。
- 屬性
備註
Java 文件 RemoteViews.RemoteResponse。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。