Notification.BubbleMetadata.Builder.SetIntent(PendingIntent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定泡泡的意圖。
[Android.Runtime.Register("setIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetIntent(Android.App.PendingIntent intent);
[<Android.Runtime.Register("setIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetIntent : Android.App.PendingIntent -> Android.App.Notification.BubbleMetadata.Builder
參數
- intent
- PendingIntent
PendingIntent:此值不可能是空值。
傳回
這個 Android.App.Notification.BubbleMetadata.Builder 實例,允許通話串接。
- 屬性
備註
設定泡泡的意圖。 當泡泡擴大時,意圖會被用到。 這會以浮動視窗顯示應用程式內容,覆蓋現有的前景活動。 意圖應該指向可調整規模的活動。
拋出:如果這個建構器是透過 Builder.Builder(String) 建立的,則使用 IllegalStateException。
Throws:若意圖為空,則使用 NullPointerException。
Android 參考資料。android.app.Notification.BubbleMetadata.Builder.setIntent
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。