Android Programming Press on the image to return to the main documentation page.

NotificationListener

List of types:

NotificationListener
StatusBarNotification

NotificationListener

NotificationListener allows you to access the device notifications.
This is only supported by Android 4.3+.
See the tutorial in the forum for more information.

Events:

NotificationPosted (SBN As StatusBarNotification)
NotificationRemoved (SBN As StatusBarNotification)

Members:


  ClearAll

  ClearNotification (SBN As StatusBarNotification)

  GetActiveNotifications

  Initialize (EventName As String)

Members description:

ClearAll
Clears all non-ongoing notifications.
ClearNotification (SBN As StatusBarNotification)
Clears the given notification (if it is not an ongoing notification).
GetActiveNotifications
Causes the listener to repost all the active notifications.
Initialize (EventName As String)
Initializes the object and sets the subs that will handle the events.

StatusBarNotification


Events:

None

Members:


  Id As Int [read only]

  IsInitialized As Boolean

  Notification As NotificationWrapper [read only]

  PackageName As String [read only]

  TickerText As String [read only]

Members description:

Id As Int [read only]
Returns the notification id.
IsInitialized As Boolean
Notification As NotificationWrapper [read only]
Returns the internal notification object.
PackageName As String [read only]
Returns the notification package name.
TickerText As String [read only]
Returns the notification ticker text field.
Top