语言

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于