Language

ActionStyle Enum

Definition

Specifies preferred icon-and-text presentation styles for notification actions.

public enum ActionStyle
type ActionStyle = 
Inheritance
ActionStyle

Fields

Name Value Description
Auto 0

The action can be presented with the best form for the content and context.

Android reference for android.app.Notification.Action.STYLE_AUTO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TextOnly 1

The action is best represented by only the text (its title).

Android reference for android.app.Notification.Action.STYLE_TEXT_ONLY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

IconAndText 2

The action is best represented by a combo of the icon and text.

Android reference for android.app.Notification.Action.STYLE_ICON_AND_TEXT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

IconOnly 3

The action is best represented by only its icon. Note that a non-null title is still mandatory, or the action might be ignored.

Android reference for android.app.Notification.Action.STYLE_ICON_ONLY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

An icon-only presentation still requires the action to have a title. These values express a preferred visual form, not a guaranteed rendering.

Applies to