語言

Notification.WearableExtender.ContentAction 屬性

定義

取得被指定為主要動作的通知動作的索引(如果有的話)。

public int ContentAction { [Android.Runtime.Register("getContentAction", "()I", "")] get; }
[<get: Android.Runtime.Register("getContentAction", "()I", "")>]
member this.ContentAction : int

屬性值

若未選擇動作,則為UNSET_ACTION_INDEX

屬性

備註

取得被指定為主要動作的通知動作的索引(如果有的話)。 如果可穿戴式特定動作被加入主通知,這個索引會套用到該清單,否則會套用到一般的動作清單。

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

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

適用於