AndroidNotificationCategory enum
The available categories for Android notifications.
Constructors
- AndroidNotificationCategory(String name)
-
Constructs an instance of AndroidNotificationCategory
with a given name of category.
const
Values
- alarm → const AndroidNotificationCategory
-
Alarm or timer.
Corresponds to
NotificationCompat.CATEGORY_ALARM
.AndroidNotificationCategory('alarm')
- call → const AndroidNotificationCategory
-
Incoming call (voice or video) or similar synchronous communication request.
Corresponds to
NotificationCompat.CATEGORY_CALL
.AndroidNotificationCategory('call')
- email → const AndroidNotificationCategory
-
Asynchronous bulk message (email).
Corresponds to
NotificationCompat.CATEGORY_EMAIL
.AndroidNotificationCategory('email')
- error → const AndroidNotificationCategory
-
Error in background operation or authentication status.
Corresponds to
NotificationCompat.CATEGORY_ERROR
.AndroidNotificationCategory('err')
- event → const AndroidNotificationCategory
-
Calendar event.
Corresponds to
NotificationCompat.CATEGORY_EVENT
.AndroidNotificationCategory('event')
- locationSharing → const AndroidNotificationCategory
-
Temporarily sharing location.
Corresponds to
NotificationCompat.CATEGORY_LOCATION_SHARING
.AndroidNotificationCategory('location_sharing')
- message → const AndroidNotificationCategory
-
Incoming direct message like SMS and instant message.
Corresponds to
NotificationCompat.CATEGORY_MESSAGE
.AndroidNotificationCategory('msg')
- missedCall → const AndroidNotificationCategory
-
Missed call.
Corresponds to
NotificationCompat.CATEGORY_MISSED_CALL
.AndroidNotificationCategory('missed_call')
-
Map turn-by-turn navigation.
Corresponds to
NotificationCompat.CATEGORY_NAVIGATION
.AndroidNotificationCategory('navigation')
- progress → const AndroidNotificationCategory
-
Progress of a long-running background operation.
Corresponds to
NotificationCompat.CATEGORY_PROGRESS
.AndroidNotificationCategory('progress')
- promo → const AndroidNotificationCategory
-
Promotion or advertisement.
Corresponds to
NotificationCompat.CATEGORY_PROMO
.AndroidNotificationCategory('promo')
- recommendation → const AndroidNotificationCategory
-
A specific, timely recommendation for a single thing.
For example, a news app might want to recommend a news story it believes the user will want to read next.
Corresponds to
NotificationCompat.CATEGORY_RECOMMENDATION
.AndroidNotificationCategory('recommendation')
- reminder → const AndroidNotificationCategory
-
User-scheduled reminder.
Corresponds to
NotificationCompat.CATEGORY_REMINDER
.AndroidNotificationCategory('reminder')
- service → const AndroidNotificationCategory
-
Indication of running background service.
Corresponds to
NotificationCompat.CATEGORY_SERVICE
.AndroidNotificationCategory('service')
-
Social network or sharing update.
Corresponds to
NotificationCompat.CATEGORY_SOCIAL
.AndroidNotificationCategory('social')
- status → const AndroidNotificationCategory
-
Ongoing information about device or contextual status.
Corresponds to
NotificationCompat.CATEGORY_STATUS
.AndroidNotificationCategory('status')
- stopwatch → const AndroidNotificationCategory
-
Running stopwatch.
Corresponds to
NotificationCompat.CATEGORY_STOPWATCH
.AndroidNotificationCategory('stopwatch')
- system → const AndroidNotificationCategory
-
System or device status update.
Reserved for system use.
Corresponds to
NotificationCompat.CATEGORY_SYSTEM
.AndroidNotificationCategory('sys')
- transport → const AndroidNotificationCategory
-
Media transport control for playback.
Corresponds to
NotificationCompat.CATEGORY_TRANSPORT
.AndroidNotificationCategory('transport')
- workout → const AndroidNotificationCategory
-
Tracking a user's workout.
Corresponds to
NotificationCompat.CATEGORY_WORKOUT
.AndroidNotificationCategory('workout')
Properties
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
Constants
-
values
→ const List<
AndroidNotificationCategory> - A constant List of the values in this enum, in order of their declaration.