語言

Notification.WearableExtender.SetContentAction(Int32) 方法

定義

將該通知行動中的一個動作設為主要動作。

[Android.Runtime.Register("setContentAction", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetContentAction(int actionIndex);
[<Android.Runtime.Register("setContentAction", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetContentAction : int -> Android.App.Notification.WearableExtender

參數

actionIndex
Int32

int:主要行動的指標。 如果可穿戴式動作被加入主通知,這個索引會套用到該清單,否則會套用到一般的行動清單。

傳回

這個 Android.App.Notification.WearableExtender 實例,允許通話串連。

屬性

備註

將該通知行動中的一個動作設為主要動作。 如果該動作與 RemoteInput 相關聯,該輸入選項的捷徑會直接在通知中顯示。

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

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

適用於