NotificationChannel Class

public final class NotificationChannel
extends ExpandableStringEnum<NotificationChannel>

The notification channel indicates the type of receivers subscribed to the notification, either user or subscription.

Field Summary

Modifier and Type Field and Description
static final NotificationChannel EMAIL_SUBSCRIPTION

Static value EmailSubscription for NotificationChannel.

static final NotificationChannel EMAIL_USER

Static value EmailUser for NotificationChannel.

Constructor Summary

Constructor Description
NotificationChannel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NotificationChannel value.

Method Summary

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

Creates or finds a NotificationChannel from its string representation.

static Collection<NotificationChannel> values()

Gets known NotificationChannel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

EMAIL_SUBSCRIPTION

public static final NotificationChannel EMAIL_SUBSCRIPTION

Static value EmailSubscription for NotificationChannel.

EMAIL_USER

public static final NotificationChannel EMAIL_USER

Static value EmailUser for NotificationChannel.

Constructor Details

NotificationChannel

@Deprecated
public NotificationChannel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NotificationChannel value.

Method Details

fromString

public static NotificationChannel fromString(String name)

Creates or finds a NotificationChannel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NotificationChannel.

values

public static Collection values()

Gets known NotificationChannel values.

Returns:

known NotificationChannel values.

Applies to