Android.Service.Notification.NotificationListenerService Class
A service that receives calls from the system when new notifications are posted or removed, or their ranking changed.

See Also: NotificationListenerService Members

Syntax

[Android.Runtime.Register("android/service/notification/NotificationListenerService", DoNotGenerateAcw=true)]
public abstract class NotificationListenerService : Android.App.Service

Remarks

A service that receives calls from the system when new notifications are posted or removed, or their ranking changed.

xml Example

 <service android:name=".NotificationListener"
          android:label="&#64;string/service_name"
          android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
     <intent-filter>
         <action android:name="android.service.notification.NotificationListenerService" />
     </intent-filter>
 </service>

To extend this class, you must declare the service in your manifest file with the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#BIND_NOTIFICATION_LISTENER_SERVICE permission and include an intent filter with the NotificationListenerService.ServiceInterface action. For example:

[Android Documentation]

Requirements

Namespace: Android.Service.Notification
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18