AndroidNotificationChannel class

Settings for Android notification channels.

Constructors

AndroidNotificationChannel(String id, String name, {String? description, String? groupId, Importance importance = Importance.defaultImportance, bool bypassDnd = false, bool playSound = true, AndroidNotificationSound? sound, bool enableVibration = true, Int64List? vibrationPattern, bool showBadge = true, bool enableLights = false, Color? ledColor, AudioAttributesUsage audioAttributesUsage = AudioAttributesUsage.notification})
Constructs an instance of AndroidNotificationChannel.
const

Properties

audioAttributesUsage → AudioAttributesUsage
The attribute describing what is the intended use of the audio signal, such as alarm or ringtone set in AudioAttributes.Builder. https://developer.android.com/reference/android/media/AudioAttributes
final
bypassDnd → bool
Whether the notification channel should attempt to bypass Do Not Disturb settings.
final
description → String?
The channel's description.
final
enableLights → bool
Indicates if lights should be enabled when the notification is displayed.
final
enableVibration → bool
Indicates if vibration should be enabled when the notification is displayed.
final
groupId → String?
The id of the group that the channel belongs to.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The channel's id.
final
importance → Importance
The importance of the notification.
final
ledColor → Color?
Specifies the light color of the notification.
final
name → String
The channel's name.
final
playSound → bool
Indicates if a sound should be played when the notification is displayed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showBadge → bool
Whether notifications posted to this channel can appear as application icon badges in a Launcher.
final
sound → AndroidNotificationSound?
The sound to play for the notification.
final
vibrationPattern → Int64List?
Configures the vibration pattern.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited