to top
Android APIs
public class

NotificationCompat

extends Object
java.lang.Object
   ↳ android.support.v4.app.NotificationCompat

Class Overview

Helper for accessing features in Notification introduced after API level 4 in a backwards compatible fashion.

Summary

Nested Classes
class NotificationCompat.Action  
class NotificationCompat.BigPictureStyle Helper class for generating large-format notifications that include a large image attachment. 
class NotificationCompat.BigTextStyle Helper class for generating large-format notifications that include a lot of text. 
class NotificationCompat.Builder Builder class for NotificationCompat objects. 
class NotificationCompat.InboxStyle Helper class for generating large-format notifications that include a list of (up to 5) strings. 
class NotificationCompat.Style An object that can apply a rich notification style to a Notification.Builder object. 
Constants
int FLAG_HIGH_PRIORITY This constant was deprecated in API level . Use setPriority(int) with a positive value.
int PRIORITY_DEFAULT Default notification priority for setPriority(int).
int PRIORITY_HIGH Higher notification priority for setPriority(int), for more important notifications or alerts.
int PRIORITY_LOW Lower notification priority for setPriority(int), for items that are less important.
int PRIORITY_MAX Highest notification priority for setPriority(int), for your application's most important items that require the user's prompt attention or input.
int PRIORITY_MIN Lowest notification priority for setPriority(int); these items might not be shown to the user except under special circumstances, such as detailed notification logs.
Public Constructors

? Examples
NotificationCompat()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int FLAG_HIGH_PRIORITY

This constant was deprecated in API level .
Use setPriority(int) with a positive value.

Obsolete flag indicating high-priority notifications; use the priority field instead.

Constant Value: 128 (0x00000080)

public static final int PRIORITY_DEFAULT

Default notification priority for setPriority(int). If your application does not prioritize its own notifications, use this value for all notifications.

Constant Value: 0 (0x00000000)

public static final int PRIORITY_HIGH

Higher notification priority for setPriority(int), for more important notifications or alerts. The UI may choose to show these items larger, or at a different position in notification lists, compared with your app's PRIORITY_DEFAULT items.

Constant Value: 1 (0x00000001)

public static final int PRIORITY_LOW

Lower notification priority for setPriority(int), for items that are less important. The UI may choose to show these items smaller, or at a different position in the list, compared with your app's PRIORITY_DEFAULT items.

Constant Value: -1 (0xffffffff)

public static final int PRIORITY_MAX

Highest notification priority for setPriority(int), for your application's most important items that require the user's prompt attention or input.

Constant Value: 2 (0x00000002)

public static final int PRIORITY_MIN

Lowest notification priority for setPriority(int); these items might not be shown to the user except under special circumstances, such as detailed notification logs.

Constant Value: -2 (0xfffffffe)

Public Constructors

public NotificationCompat ()

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.