Notification.WearableExtender.AddAction(Notification+Action) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請在此通知中新增可穿戴動作。
[Android.Runtime.Register("addAction", "(Landroid/app/Notification$Action;)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? AddAction(Android.App.Notification.Action? action);
[<Android.Runtime.Register("addAction", "(Landroid/app/Notification$Action;)Landroid/app/Notification$WearableExtender;", "")>]
member this.AddAction : Android.App.Notification.Action -> Android.App.Notification.WearableExtender
參數
- action
- Notification.Action
通知。動作:將新增到此通知中的動作
傳回
此物件用於方法鏈結
- 屬性
備註
請在此通知中新增可穿戴動作。 當使用此方法新增可穿戴裝置的動作時,顯示在穿戴裝置上的動作集合會與僅透過 Notification.Builder.addAction(Action) 新增的裝置分開。 這允許自訂不同裝置上顯示的動作。
另請參閱:
Android 參考資料。android.app.Notification.WearableExtender.addAction
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。