共用方式為


NotificationCategory Class

public final class NotificationCategory
extends ExpandableStringEnum<NotificationCategory>

The category of notification.

Field Summary

Modifier and Type Field and Description
static final NotificationCategory WAVE_PROGRESS

Static value WaveProgress for NotificationCategory.

Constructor Summary

Constructor Description
NotificationCategory()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NotificationCategory value.

Method Summary

Modifier and Type Method and Description
static NotificationCategory fromString(String name)

Creates or finds a NotificationCategory from its string representation.

static Collection<NotificationCategory> values()

Gets known NotificationCategory values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

WAVE_PROGRESS

public static final NotificationCategory WAVE_PROGRESS

Static value WaveProgress for NotificationCategory.

Constructor Details

NotificationCategory

@Deprecated
public NotificationCategory()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NotificationCategory value.

Method Details

fromString

public static NotificationCategory fromString(String name)

Creates or finds a NotificationCategory from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NotificationCategory.

values

public static Collection<NotificationCategory> values()

Gets known NotificationCategory values.

Returns:

known NotificationCategory values.

Applies to