語言

Notification.WearableExtender.AddActions 方法

定義

在此通知中新增可穿戴的動作。

[Android.Runtime.Register("addActions", "(Ljava/util/List;)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? AddActions(System.Collections.Generic.IList<Android.App.Notification.Action>? actions);
[<Android.Runtime.Register("addActions", "(Ljava/util/List;)Landroid/app/Notification$WearableExtender;", "")>]
member this.AddActions : System.Collections.Generic.IList<Android.App.Notification.Action> -> Android.App.Notification.WearableExtender

參數

actions
IList<Notification.Action>

清單:應加入此通知的行動

傳回

此物件用於方法鏈結

屬性

備註

在此通知中新增可穿戴的動作。 當使用此方法新增可穿戴裝置的動作時,顯示在穿戴裝置上的動作集合會與僅透過 Notification.Builder.addAction(Action) 新增的裝置分開。 這允許自訂不同裝置上顯示的動作。

另請參閱:

Android 參考資料。android.app.Notification.WearableExtender.addActions

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於