Notification.WearableExtender.AddActions 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在此通知中新增可穿戴的動作。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。