Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/app/NotificationChannel#constants) \| [Inherited Constants](https://developer.android.com/reference/android/app/NotificationChannel#inhconstants) \| [Fields](https://developer.android.com/reference/android/app/NotificationChannel#lfields) \| [Ctors](https://developer.android.com/reference/android/app/NotificationChannel#pubctors) \| [Methods](https://developer.android.com/reference/android/app/NotificationChannel#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/NotificationChannel#inhmethods)

# NotificationChannel

*** ** * ** ***

` public final class NotificationChannel `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/os/Parcelable `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.NotificationChannel |

<br />

*** ** * ** ***

A representation of settings that apply to a collection of similarly themed notifications.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#DEFAULT_CHANNEL_ID` The id of the default channel for an app. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_CONVERSATION` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_IMPORTANCE` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_LAUNCHER` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_LOCKED_DEVICE` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_SOUND` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_VIBRATION` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/NotificationChannel#EDIT_ZEN` Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/app/NotificationChannel>` | `https://developer.android.com/reference/android/app/NotificationChannel#CREATOR` <br /> |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/app/NotificationChannel#NotificationChannel(java.lang.String,%20java.lang.CharSequence,%20int)(https://developer.android.com/reference/java/lang/String id, https://developer.android.com/reference/java/lang/CharSequence name, int importance) ` Creates a notification channel. |

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#canBubble()() ` Returns whether notifications posted to this channel are allowed to display outside of the notification shade, in a floating window on top of other apps. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#canBypassDnd()() ` Whether or not notifications posted to this channel can bypass the Do Not Disturb `https://developer.android.com/reference/android/app/NotificationManager#INTERRUPTION_FILTER_PRIORITY` mode when the active policy allows priority channels to bypass notification filtering. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#canShowBadge()() ` Returns whether notifications posted to this channel can appear as badges in a Launcher application. |
| ` int` | ` https://developer.android.com/reference/android/app/NotificationChannel#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#enableLights(boolean)(boolean lights) ` Sets whether notifications posted to this channel should display notification lights, on devices that support that feature. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#enableVibration(boolean)(boolean vibration) ` Sets whether notification posted to this channel should vibrate. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` https://developer.android.com/reference/android/media/AudioAttributes` | ` https://developer.android.com/reference/android/app/NotificationChannel#getAudioAttributes()() ` Returns the audio attributes for sound played by notifications posted to this channel. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/NotificationChannel#getConversationId()() ` Returns the `https://developer.android.com/reference/android/content/pm/ShortcutInfo#getId()` of the conversation backing this channel, if it's associated with a conversation. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/NotificationChannel#getDescription()() ` Returns the user visible description of this channel. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/NotificationChannel#getGroup()() ` Returns what group this channel belongs to. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/NotificationChannel#getId()() ` Returns the id of this channel. |
| ` int` | ` https://developer.android.com/reference/android/app/NotificationChannel#getImportance()() ` Returns the user specified importance e.g. `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_LOW` for notifications posted to this channel. |
| ` int` | ` https://developer.android.com/reference/android/app/NotificationChannel#getLightColor()() ` Returns the notification light color for notifications posted to this channel. |
| ` int` | ` https://developer.android.com/reference/android/app/NotificationChannel#getLockscreenVisibility()() ` Returns whether or not notifications posted to this channel are shown on the lockscreen in full or redacted form. |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/app/NotificationChannel#getName()() ` Returns the user visible name of this channel. |
| ` int` | ` https://developer.android.com/reference/android/app/NotificationChannel#getOriginalImportance()() ` Returns the app-defined importance for this channel, prior to any user modifications. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/NotificationChannel#getParentChannelId()() ` Returns the `https://developer.android.com/reference/android/app/NotificationChannel#getId()` of the parent notification channel to this channel, if it's a conversation related channel. |
| ` https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/app/NotificationChannel#getSound()() ` Returns the notification sound for this channel. |
| ` https://developer.android.com/reference/android/os/VibrationEffect` | ` https://developer.android.com/reference/android/app/NotificationChannel#getVibrationEffect()() ` Returns the `https://developer.android.com/reference/android/os/VibrationEffect` for notifications posted to this channel. |
| ` long[]` | ` https://developer.android.com/reference/android/app/NotificationChannel#getVibrationPattern()() ` Returns the vibration pattern for notifications posted to this channel. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#hasUserSetImportance()() ` Returns whether the user has chosen the importance of this channel, either to affirm the initial selection from the app, or changed it to be higher or lower. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#hasUserSetSound()() ` Returns whether the user has chosen the sound of this channel. |
| ` int` | ` https://developer.android.com/reference/android/app/NotificationChannel#hashCode()() ` Returns a hash code value for the object. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#isBlockable()() ` Returns whether this channel is always blockable, even if the app is 'fixed' as non-blockable. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#isConversation()() ` Whether or not this channel represents a conversation. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#isDemoted()() ` Returns whether the user has decided that this channel does not represent a conversation. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#isImportantConversation()() ` Whether or not notifications in this conversation are considered important. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setAllowBubbles(boolean)(boolean allowBubbles) ` As of Android 11 this value is no longer respected. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setBlockable(boolean)(boolean blockable) ` Allows users to block notifications sent through this channel, if this channel belongs to a package that otherwise would have notifications "fixed" as enabled. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setBypassDnd(boolean)(boolean bypassDnd) ` Sets whether or not notifications posted to this channel can interrupt the user in `https://developer.android.com/reference/android/app/NotificationManager#INTERRUPTION_FILTER_PRIORITY` mode. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setConversationId(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String parentChannelId, https://developer.android.com/reference/java/lang/String conversationId) ` Sets this channel as being converastion-centric. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setDescription(java.lang.String)(https://developer.android.com/reference/java/lang/String description) ` Sets the user visible description of this channel. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setGroup(java.lang.String)(https://developer.android.com/reference/java/lang/String groupId) ` Sets what group this channel belongs to. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setImportance(int)(int importance) ` Sets the level of interruption of this notification channel. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setLightColor(int)(int argb) ` Sets the notification light color for notifications posted to this channel, if lights are `https://developer.android.com/reference/android/app/NotificationChannel#enableLights(boolean)` on this channel and the device supports that feature. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setLockscreenVisibility(int)(int lockscreenVisibility) ` Sets whether notifications posted to this channel appear on the lockscreen or not, and if so, whether they appear in a redacted form. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setName(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence name) ` Sets the user visible name of this channel. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setShowBadge(boolean)(boolean showBadge) ` Sets whether notifications posted to this channel can appear as application icon badges in a Launcher. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setSound(android.net.Uri,%20android.media.AudioAttributes)(https://developer.android.com/reference/android/net/Uri sound, https://developer.android.com/reference/android/media/AudioAttributes audioAttributes) ` Sets the sound that should be played for notifications posted to this channel and its audio attributes. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setVibrationEffect(android.os.VibrationEffect)(https://developer.android.com/reference/android/os/VibrationEffect effect) ` Sets a `https://developer.android.com/reference/android/os/VibrationEffect` for notifications posted to this channel. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#setVibrationPattern(long[])(long[] vibrationPattern) ` Sets the vibration pattern for notifications posted to this channel. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#shouldShowLights()() ` Returns whether notifications posted to this channel trigger notification lights. |
| ` boolean` | ` https://developer.android.com/reference/android/app/NotificationChannel#shouldVibrate()() ` Returns whether notifications posted to this channel always vibrate. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/NotificationChannel#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/app/NotificationChannel#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Constants

### DEFAULT_CHANNEL_ID

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DEFAULT_CHANNEL_ID
```

The id of the default channel for an app. This id is reserved by the system. All notifications posted from apps targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#N_MR1` or earlier without a notification channel specified are posted to this channel.

<br />

Constant Value: "miscellaneous"

### EDIT_CONVERSATION

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_CONVERSATION
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing conversation settings (demoting or restoring a channel to be a Conversation, changing bubble behavior, or setting the priority of a conversation).

<br />

Constant Value: "conversation"

### EDIT_IMPORTANCE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_IMPORTANCE
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing importance (`https://developer.android.com/reference/android/app/NotificationChannel#setImportance(int)`) and/or conversation priority.

<br />

Constant Value: "importance"

### EDIT_LAUNCHER

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_LAUNCHER
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing launcher behavior (showing badges)}.

<br />

Constant Value: "launcher"

### EDIT_LOCKED_DEVICE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_LOCKED_DEVICE
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing behavior on devices that are locked or have a turned off display (`https://developer.android.com/reference/android/app/NotificationChannel#setLockscreenVisibility(int)`, `https://developer.android.com/reference/android/app/NotificationChannel#enableLights(boolean)`, `https://developer.android.com/reference/android/app/NotificationChannel#setLightColor(int)`).

<br />

Constant Value: "locked"

### EDIT_SOUND

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_SOUND
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing sound, like a tone picker (`https://developer.android.com/reference/android/app/NotificationChannel#setSound(android.net.Uri,%20android.media.AudioAttributes)`).

<br />

Constant Value: "sound"

### EDIT_VIBRATION

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_VIBRATION
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing vibration (`https://developer.android.com/reference/android/app/NotificationChannel#enableVibration(boolean)`, `https://developer.android.com/reference/android/app/NotificationChannel#setVibrationPattern(long[])`).

<br />

Constant Value: "vibration"

### EDIT_ZEN

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EDIT_ZEN
```

Extra value for `https://developer.android.com/reference/android/provider/Settings#EXTRA_CHANNEL_FILTER_LIST`. Include to show fields that have to do with editing do not disturb bypass {(@link #setBypassDnd(boolean)}) .

<br />

Constant Value: "zen"

## Fields

### CREATOR

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<NotificationChannel> CREATOR
```

<br />

<br />

## Public constructors

### NotificationChannel

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public NotificationChannel (String id, 
                CharSequence name, 
                int importance)
```

Creates a notification channel.

<br />

| Parameters ||
|---|---|
| `id` | `String`: The id of the channel. Must be unique per package. The value may be truncated if it is too long. <br /> |
| `name` | `CharSequence`: The user visible name of the channel. You can rename this channel when the system locale changes by listening for the `https://developer.android.com/reference/android/content/Intent#ACTION_LOCALE_CHANGED` broadcast. The recommended maximum length is 40 characters; the value may be truncated if it is too long. <br /> |
| `importance` | `int`: The importance of the channel. This controls how interruptive notifications posted to this channel are. Value is one of the following: - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_UNSPECIFIED` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_NONE` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_MIN` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_LOW` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_HIGH` |

## Public methods

### canBubble

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canBubble ()
```

Returns whether notifications posted to this channel are allowed to display outside of the notification shade, in a floating window on top of other apps.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/Notification#getBubbleMetadata()`

### canBypassDnd

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canBypassDnd ()
```

Whether or not notifications posted to this channel can bypass the Do Not Disturb `https://developer.android.com/reference/android/app/NotificationManager#INTERRUPTION_FILTER_PRIORITY` mode when the active policy allows priority channels to bypass notification filtering.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### canShowBadge

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canShowBadge ()
```

Returns whether notifications posted to this channel can appear as badges in a Launcher application. Note that badging may be disabled for other reasons.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### describeContents

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`, the return value of this method must include the `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### enableLights

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void enableLights (boolean lights)
```

Sets whether notifications posted to this channel should display notification lights, on devices that support that feature. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `lights` | `boolean` <br /> |

### enableVibration

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void enableVibration (boolean vibration)
```

Sets whether notification posted to this channel should vibrate. The vibration pattern can be set with `https://developer.android.com/reference/android/app/NotificationChannel#setVibrationPattern(long[])`. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `vibration` | `boolean` <br /> |

### equals

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.

The `equals` method implements an equivalence relation on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.

An equivalence relation partitions the elements it operates on into *equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getAudioAttributes

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AudioAttributes getAudioAttributes ()
```

Returns the audio attributes for sound played by notifications posted to this channel.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/AudioAttributes` | <br /> |

### getConversationId

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getConversationId ()
```

Returns the `https://developer.android.com/reference/android/content/pm/ShortcutInfo#getId()` of the conversation backing this channel, if it's associated with a conversation. See `https://developer.android.com/reference/android/app/NotificationChannel#setConversationId(java.lang.String,%20java.lang.String)`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value may be `null`. <br /> |

### getDescription

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getDescription ()
```

Returns the user visible description of this channel.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getGroup

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getGroup ()
```

Returns what group this channel belongs to. This is used only for visually grouping channels in the UI.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getId

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getId ()
```

Returns the id of this channel.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getImportance

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getImportance ()
```

Returns the user specified importance e.g. `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_LOW` for notifications posted to this channel. Note: This value might be \> `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_NONE`, but notifications posted to this channel will not be shown to the user if the parent `https://developer.android.com/reference/android/app/NotificationChannelGroup` or app is blocked. See `https://developer.android.com/reference/android/app/NotificationChannelGroup#isBlocked()` and `https://developer.android.com/reference/android/app/NotificationManager#areNotificationsEnabled()`.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_UNSPECIFIED` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_NONE` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_MIN` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_LOW` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_HIGH` |

### getLightColor

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getLightColor ()
```

Returns the notification light color for notifications posted to this channel. Irrelevant unless `https://developer.android.com/reference/android/app/NotificationChannel#shouldShowLights()`.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getLockscreenVisibility

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getLockscreenVisibility ()
```

Returns whether or not notifications posted to this channel are shown on the lockscreen in full or redacted form.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getName

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence getName ()
```

Returns the user visible name of this channel.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | <br /> |

### getOriginalImportance

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int getOriginalImportance ()
```

Returns the app-defined importance for this channel, prior to any user modifications. This may differ from `https://developer.android.com/reference/android/app/NotificationChannel#getImportance()` if the user has changed the setting. Typically reflects the channel's initial importance set upon creation.

<br />

| Returns ||
|---|---|
| `int` | The original importance as set by the app. Value is one of the following: - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_UNSPECIFIED` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_NONE` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_MIN` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_LOW` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_HIGH` |

**See also:**

- `https://developer.android.com/reference/android/app/NotificationChannel#getImportance()`

### getParentChannelId

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getParentChannelId ()
```

Returns the `https://developer.android.com/reference/android/app/NotificationChannel#getId()` of the parent notification channel to this channel, if it's a conversation related channel. See `https://developer.android.com/reference/android/app/NotificationChannel#setConversationId(java.lang.String,%20java.lang.String)`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value may be `null`. <br /> |

### getSound

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Uri getSound ()
```

Returns the notification sound for this channel.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | <br /> |

### getVibrationEffect

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public VibrationEffect getVibrationEffect ()
```

Returns the `https://developer.android.com/reference/android/os/VibrationEffect` for notifications posted to this channel. The returned effect is derived from either the effect provided in the `https://developer.android.com/reference/android/app/NotificationChannel#setVibrationEffect(android.os.VibrationEffect)` method, or the equivalent vibration effect of the pattern set via the `https://developer.android.com/reference/android/app/NotificationChannel#setVibrationPattern(long[])` method, based on setter method that was called last. The returned effect will be ignored in one of the following cases:

- vibration is not enabled for the channel (i.e. `https://developer.android.com/reference/android/app/NotificationChannel#shouldVibrate()` returns `false`).
- the effect is not supported/playable by the device. In this case, if vibration is enabled for the channel, the default channel vibration will be used instead.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/VibrationEffect` | the `https://developer.android.com/reference/android/os/VibrationEffect` set via `https://developer.android.com/reference/android/app/NotificationChannel#setVibrationEffect(android.os.VibrationEffect)`, or the equivalent of the vibration set via `https://developer.android.com/reference/android/app/NotificationChannel#setVibrationPattern(long[])`. This value may be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/os/VibrationEffect#createWaveform(long[],%20int)`

### getVibrationPattern

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long[] getVibrationPattern ()
```

Returns the vibration pattern for notifications posted to this channel. Will be ignored if vibration is not enabled (`https://developer.android.com/reference/android/app/NotificationChannel#shouldVibrate()`).

<br />

| Returns ||
|---|---|
| `long[]` | <br /> |

### hasUserSetImportance

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasUserSetImportance ()
```

Returns whether the user has chosen the importance of this channel, either to affirm the initial selection from the app, or changed it to be higher or lower.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/NotificationChannel#getImportance()`

### hasUserSetSound

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasUserSetSound ()
```

Returns whether the user has chosen the sound of this channel.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/NotificationChannel#getSound()`

### hashCode

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by `https://developer.android.com/reference/java/util/HashMap`.

The general contract of `hashCode` is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result.
- It is *not* required that if two objects are unequal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

<br />

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this object. <br /> |

### isBlockable

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isBlockable ()
```

Returns whether this channel is always blockable, even if the app is 'fixed' as non-blockable.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isConversation

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isConversation ()
```

Whether or not this channel represents a conversation.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isDemoted

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isDemoted ()
```

Returns whether the user has decided that this channel does not represent a conversation. The value will always be false for channels that never claimed to be conversations - that is, for channels where `https://developer.android.com/reference/android/app/NotificationChannel#getConversationId()` and `https://developer.android.com/reference/android/app/NotificationChannel#getParentChannelId()` are empty.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isImportantConversation

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isImportantConversation ()
```

Whether or not notifications in this conversation are considered important.

Important conversations may get special visual treatment, and might be able to bypass DND.

This is only valid for channels that represent conversations, that is, where `https://developer.android.com/reference/android/app/NotificationChannel#isConversation()` is true.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### setAllowBubbles

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAllowBubbles (boolean allowBubbles)
```

As of Android 11 this value is no longer respected.

<br />

| Parameters ||
|---|---|
| `allowBubbles` | `boolean` <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/NotificationChannel#canBubble()`
- `https://developer.android.com/reference/android/app/Notification#getBubbleMetadata()`

### setBlockable

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setBlockable (boolean blockable)
```

Allows users to block notifications sent through this channel, if this channel belongs to a package that otherwise would have notifications "fixed" as enabled. If the channel does not belong to a package that has a fixed notification permission, this method does nothing, since such channels are blockable by default and cannot be set to be unblockable.

<br />

| Parameters ||
|---|---|
| `blockable` | `boolean`: if `true`, allows users to block notifications on this channel. <br /> |

### setBypassDnd

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setBypassDnd (boolean bypassDnd)
```

Sets whether or not notifications posted to this channel can interrupt the user in `https://developer.android.com/reference/android/app/NotificationManager#INTERRUPTION_FILTER_PRIORITY` mode.

Apps with Do Not Disturb policy access (see `https://developer.android.com/reference/android/app/NotificationManager#isNotificationPolicyAccessGranted()`) can set up their own channels this way, but only if the channel hasn't been updated by the user since its creation.

Otherwise, this value is only modifiable by the system and the notification ranker.

<br />

| Parameters ||
|---|---|
| `bypassDnd` | `boolean` <br /> |

### setConversationId

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setConversationId (String parentChannelId, 
                String conversationId)
```

Sets this channel as being converastion-centric. Different settings and functionality may be exposed for conversation-centric channels.

<br />

| Parameters ||
|---|---|
| `parentChannelId` | `String`: The `https://developer.android.com/reference/android/app/NotificationChannel#getId()` id} of the generic channel that notifications of this type would be posted to in absence of a specific conversation id. For example, if this channel represents 'Messages from Person A', the parent channel would be 'Messages.'. This value cannot be `null`. <br /> |
| `conversationId` | `String`: The `https://developer.android.com/reference/android/content/pm/ShortcutInfo#getId()` of the shortcut representing this channel's conversation. This value cannot be `null`. <br /> |

### setDescription

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setDescription (String description)
```

Sets the user visible description of this channel.

The recommended maximum length is 300 characters; the value may be truncated if it is too long.

<br />

| Parameters ||
|---|---|
| `description` | `String` <br /> |

### setGroup

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setGroup (String groupId)
```

Sets what group this channel belongs to. Group information is only used for presentation, not for behavior. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`, unless the channel is not currently part of a group.

<br />

| Parameters ||
|---|---|
| `groupId` | `String`: the id of a group created by `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannelGroup(android.app.NotificationChannelGroup)`. <br /> |

### setImportance

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setImportance (int importance)
```

Sets the level of interruption of this notification channel. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `importance` | `int`: the amount the user should be interrupted by notifications from this channel. Value is one of the following: - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_UNSPECIFIED` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_NONE` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_MIN` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_LOW` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT` - `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_HIGH` |

### setLightColor

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLightColor (int argb)
```

Sets the notification light color for notifications posted to this channel, if lights are `https://developer.android.com/reference/android/app/NotificationChannel#enableLights(boolean)` on this channel and the device supports that feature. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `argb` | `int` <br /> |

### setLockscreenVisibility

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLockscreenVisibility (int lockscreenVisibility)
```

Sets whether notifications posted to this channel appear on the lockscreen or not, and if so, whether they appear in a redacted form. See e.g. `https://developer.android.com/reference/android/app/Notification#VISIBILITY_SECRET`. Only modifiable by the system and notification ranker.

<br />

| Parameters ||
|---|---|
| `lockscreenVisibility` | `int` <br /> |

### setName

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setName (CharSequence name)
```

Sets the user visible name of this channel.

The recommended maximum length is 40 characters; the value may be truncated if it is too long.

<br />

| Parameters ||
|---|---|
| `name` | `CharSequence` <br /> |

### setShowBadge

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setShowBadge (boolean showBadge)
```

Sets whether notifications posted to this channel can appear as application icon badges in a Launcher. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `showBadge` | `boolean`: true if badges should be allowed to be shown. <br /> |

### setSound

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSound (Uri sound, 
                AudioAttributes audioAttributes)
```

Sets the sound that should be played for notifications posted to this channel and its audio attributes. Notification channels with an `https://developer.android.com/reference/android/app/NotificationChannel#getImportance()` of at least `https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT` should have a sound. Note: An app-specific sound can be provided in the Uri parameter, but because channels are persistent for the duration of the app install, and are backed up and restored, the Uri should be stable. For this reason it is not recommended to use a `https://developer.android.com/reference/android/content/ContentResolver#SCHEME_ANDROID_RESOURCE` uri, as resource ids can change on app upgrade. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `sound` | `Uri` <br /> |
| `audioAttributes` | `AudioAttributes` <br /> |

### setVibrationEffect

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setVibrationEffect (VibrationEffect effect)
```

Sets a `https://developer.android.com/reference/android/os/VibrationEffect` for notifications posted to this channel. If the provided effect is non-null, will enable vibration on this channel (equivalent to calling `https://developer.android.com/reference/android/app/NotificationChannel#enableVibration(boolean)` with `true`). Otherwise vibration will be disabled unless `https://developer.android.com/reference/android/app/NotificationChannel#enableVibration(boolean)` is used with `true`, in which case the default vibration will be used.

The effect passed here will be returned from `https://developer.android.com/reference/android/app/NotificationChannel#getVibrationEffect()`. If the provided `https://developer.android.com/reference/android/os/VibrationEffect` is an equivalent to a wave-form vibration pattern, the equivalent wave-form pattern will be returned from `https://developer.android.com/reference/android/app/NotificationChannel#getVibrationPattern()`.

Note that some `https://developer.android.com/reference/android/os/VibrationEffect`s may not be playable on some devices. In cases where such an effect is passed here, vibration will still be enabled for the channel, but the default vibration will be used. Nonetheless, the provided effect will be stored and be returned from `https://developer.android.com/reference/android/app/NotificationChannel#getVibrationEffect()` calls, and could be used by the same channel on a different device, for example, in cases the user backs up and restores to a device that does have the ability to play the effect, where that effect will be used instead of the default. To avoid such issues that could make the vibration behavior of your notification channel differ among different devices, it's recommended that you avoid vibration effect primitives, as the support for them differs widely among devices (read `https://developer.android.com/reference/android/os/VibrationEffect.Composition` for more on vibration primitives).

Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `effect` | `VibrationEffect`: This value may be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/NotificationChannel#getVibrationEffect()`
- `https://developer.android.com/reference/android/os/Vibrator#areEffectsSupported(int[])`
- `https://developer.android.com/reference/android/os/Vibrator#arePrimitivesSupported(int[])`

### setVibrationPattern

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setVibrationPattern (long[] vibrationPattern)
```

Sets the vibration pattern for notifications posted to this channel. If the provided pattern is valid (non-null, non-empty with at least 1 non-zero value), will enable vibration on this channel (equivalent to calling `https://developer.android.com/reference/android/app/NotificationChannel#enableVibration(boolean)` with `true`). Otherwise, vibration will be disabled unless `https://developer.android.com/reference/android/app/NotificationChannel#enableVibration(boolean)` is used with `true`, in which case the default vibration will be used. Only modifiable before the channel is submitted to `https://developer.android.com/reference/android/app/NotificationManager#createNotificationChannel(android.app.NotificationChannel)`.

<br />

| Parameters ||
|---|---|
| `vibrationPattern` | `long` <br /> |

### shouldShowLights

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean shouldShowLights ()
```

Returns whether notifications posted to this channel trigger notification lights.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### shouldVibrate

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean shouldVibrate ()
```

Returns whether notifications posted to this channel always vibrate.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### toString

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |