Table of Contents

Class NotificationListenerService

Namespace
Android.Service.Notification
Assembly
MASES.Netdroid.dll
public class NotificationListenerService : Service, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Context>
NotificationListenerService
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Context>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Context>.IsAssignableFrom<T>()
JVMBridgeBase<Context>.Execute<T>(params T[])
JVMBridgeBase<Context>.DynBridgeClazz
JVMBridgeBase<Context>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

NotificationListenerService()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("NotificationListenerService class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public NotificationListenerService()

NotificationListenerService(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("NotificationListenerService class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public NotificationListenerService(params object[] args)

Parameters

args object[]

Properties

ACTION_SETTINGS_HOME

public static String ACTION_SETTINGS_HOME { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

FLAG_FILTER_TYPE_ALERTING

public static int FLAG_FILTER_TYPE_ALERTING { get; }

Property Value

int

FLAG_FILTER_TYPE_CONVERSATIONS

public static int FLAG_FILTER_TYPE_CONVERSATIONS { get; }

Property Value

int

FLAG_FILTER_TYPE_ONGOING

public static int FLAG_FILTER_TYPE_ONGOING { get; }

Property Value

int

FLAG_FILTER_TYPE_SILENT

public static int FLAG_FILTER_TYPE_SILENT { get; }

Property Value

int

HINT_HOST_DISABLE_CALL_EFFECTS

public static int HINT_HOST_DISABLE_CALL_EFFECTS { get; }

Property Value

int

HINT_HOST_DISABLE_EFFECTS

public static int HINT_HOST_DISABLE_EFFECTS { get; }

Property Value

int

HINT_HOST_DISABLE_NOTIFICATION_EFFECTS

public static int HINT_HOST_DISABLE_NOTIFICATION_EFFECTS { get; }

Property Value

int

INTERRUPTION_FILTER_ALARMS

public static int INTERRUPTION_FILTER_ALARMS { get; }

Property Value

int

INTERRUPTION_FILTER_ALL

public static int INTERRUPTION_FILTER_ALL { get; }

Property Value

int

INTERRUPTION_FILTER_NONE

public static int INTERRUPTION_FILTER_NONE { get; }

Property Value

int

INTERRUPTION_FILTER_PRIORITY

public static int INTERRUPTION_FILTER_PRIORITY { get; }

Property Value

int

INTERRUPTION_FILTER_UNKNOWN

public static int INTERRUPTION_FILTER_UNKNOWN { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

META_DATA_DEFAULT_AUTOBIND

public static String META_DATA_DEFAULT_AUTOBIND { get; }

Property Value

String

META_DATA_DEFAULT_FILTER_TYPES

public static String META_DATA_DEFAULT_FILTER_TYPES { get; }

Property Value

String

META_DATA_DISABLED_FILTER_TYPES

public static String META_DATA_DISABLED_FILTER_TYPES { get; }

Property Value

String

NOTIFICATION_CHANNEL_OR_GROUP_ADDED

public static int NOTIFICATION_CHANNEL_OR_GROUP_ADDED { get; }

Property Value

int

NOTIFICATION_CHANNEL_OR_GROUP_DELETED

public static int NOTIFICATION_CHANNEL_OR_GROUP_DELETED { get; }

Property Value

int

NOTIFICATION_CHANNEL_OR_GROUP_UPDATED

public static int NOTIFICATION_CHANNEL_OR_GROUP_UPDATED { get; }

Property Value

int

REASON_APP_CANCEL

public static int REASON_APP_CANCEL { get; }

Property Value

int

REASON_APP_CANCEL_ALL

public static int REASON_APP_CANCEL_ALL { get; }

Property Value

int

REASON_ASSISTANT_CANCEL

public static int REASON_ASSISTANT_CANCEL { get; }

Property Value

int

REASON_CANCEL

public static int REASON_CANCEL { get; }

Property Value

int

REASON_CANCEL_ALL

public static int REASON_CANCEL_ALL { get; }

Property Value

int

REASON_CHANNEL_BANNED

public static int REASON_CHANNEL_BANNED { get; }

Property Value

int

REASON_CHANNEL_REMOVED

public static int REASON_CHANNEL_REMOVED { get; }

Property Value

int

REASON_CLEAR_DATA

public static int REASON_CLEAR_DATA { get; }

Property Value

int

REASON_CLICK

public static int REASON_CLICK { get; }

Property Value

int

REASON_ERROR

public static int REASON_ERROR { get; }

Property Value

int

REASON_GROUP_OPTIMIZATION

public static int REASON_GROUP_OPTIMIZATION { get; }

Property Value

int

REASON_GROUP_SUMMARY_CANCELED

public static int REASON_GROUP_SUMMARY_CANCELED { get; }

Property Value

int

REASON_LISTENER_CANCEL

public static int REASON_LISTENER_CANCEL { get; }

Property Value

int

REASON_LISTENER_CANCEL_ALL

public static int REASON_LISTENER_CANCEL_ALL { get; }

Property Value

int

REASON_LOCKDOWN

public static int REASON_LOCKDOWN { get; }

Property Value

int

REASON_PACKAGE_BANNED

public static int REASON_PACKAGE_BANNED { get; }

Property Value

int

REASON_PACKAGE_CHANGED

public static int REASON_PACKAGE_CHANGED { get; }

Property Value

int

REASON_PACKAGE_SUSPENDED

public static int REASON_PACKAGE_SUSPENDED { get; }

Property Value

int

REASON_PROFILE_TURNED_OFF

public static int REASON_PROFILE_TURNED_OFF { get; }

Property Value

int

REASON_SNOOZED

public static int REASON_SNOOZED { get; }

Property Value

int

REASON_TIMEOUT

public static int REASON_TIMEOUT { get; }

Property Value

int

REASON_UNAUTOBUNDLED

public static int REASON_UNAUTOBUNDLED { get; }

Property Value

int

REASON_USER_STOPPED

public static int REASON_USER_STOPPED { get; }

Property Value

int

SERVICE_INTERFACE

public static String SERVICE_INTERFACE { get; }

Property Value

String

SUPPRESSED_EFFECT_SCREEN_OFF

[Obsolete]
public static int SUPPRESSED_EFFECT_SCREEN_OFF { get; }

Property Value

int

SUPPRESSED_EFFECT_SCREEN_ON

[Obsolete]
public static int SUPPRESSED_EFFECT_SCREEN_ON { get; }

Property Value

int

Methods

CancelAllNotifications()

public void CancelAllNotifications()

CancelNotification(String)

public void CancelNotification(String arg0)

Parameters

arg0 String

String

CancelNotification(String, String, int)

[Obsolete]
public void CancelNotification(String arg0, String arg1, int arg2)

Parameters

arg0 String

String

arg1 String

String

arg2 int

int

CancelNotifications(String[])

public void CancelNotifications(String[] arg0)

Parameters

arg0 String[]

String

ClearRequestedListenerHints()

public void ClearRequestedListenerHints()

GetActiveNotifications()

public StatusBarNotification[] GetActiveNotifications()

Returns

StatusBarNotification[]

StatusBarNotification

GetActiveNotifications(String[])

public StatusBarNotification[] GetActiveNotifications(String[] arg0)

Parameters

arg0 String[]

String

Returns

StatusBarNotification[]

StatusBarNotification

GetCurrentInterruptionFilter()

public int GetCurrentInterruptionFilter()

Returns

int

int

GetCurrentListenerHints()

public int GetCurrentListenerHints()

Returns

int

int

GetCurrentRanking()

public NotificationListenerService.RankingMap GetCurrentRanking()

Returns

NotificationListenerService.RankingMap

NotificationListenerService.RankingMap

GetNotificationChannelGroups(String, UserHandle)

public List<NotificationChannelGroup> GetNotificationChannelGroups(String arg0, UserHandle arg1)

Parameters

arg0 String

String

arg1 UserHandle

UserHandle

Returns

List<NotificationChannelGroup>

List

GetNotificationChannels(String, UserHandle)

public List<NotificationChannel> GetNotificationChannels(String arg0, UserHandle arg1)

Parameters

arg0 String

String

arg1 UserHandle

UserHandle

Returns

List<NotificationChannel>

List

GetSnoozedNotifications()

public StatusBarNotification[] GetSnoozedNotifications()

Returns

StatusBarNotification[]

StatusBarNotification

MigrateNotificationFilter(int, List<String>)

public void MigrateNotificationFilter(int arg0, List<String> arg1)

Parameters

arg0 int

int

arg1 List<String>

List

OnInterruptionFilterChanged(int)

public void OnInterruptionFilterChanged(int arg0)

Parameters

arg0 int

int

OnListenerConnected()

public void OnListenerConnected()

OnListenerDisconnected()

public void OnListenerDisconnected()

OnListenerHintsChanged(int)

public void OnListenerHintsChanged(int arg0)

Parameters

arg0 int

int

OnNotificationChannelGroupModified(String, UserHandle, NotificationChannelGroup, int)

public void OnNotificationChannelGroupModified(String arg0, UserHandle arg1, NotificationChannelGroup arg2, int arg3)

Parameters

arg0 String

String

arg1 UserHandle

UserHandle

arg2 NotificationChannelGroup

NotificationChannelGroup

arg3 int

int

OnNotificationChannelModified(String, UserHandle, NotificationChannel, int)

public void OnNotificationChannelModified(String arg0, UserHandle arg1, NotificationChannel arg2, int arg3)

Parameters

arg0 String

String

arg1 UserHandle

UserHandle

arg2 NotificationChannel

NotificationChannel

arg3 int

int

OnNotificationPosted(StatusBarNotification)

public void OnNotificationPosted(StatusBarNotification arg0)

Parameters

arg0 StatusBarNotification

StatusBarNotification

OnNotificationPosted(StatusBarNotification, RankingMap)

public void OnNotificationPosted(StatusBarNotification arg0, NotificationListenerService.RankingMap arg1)

Parameters

arg0 StatusBarNotification

StatusBarNotification

arg1 NotificationListenerService.RankingMap

NotificationListenerService.RankingMap

OnNotificationRankingUpdate(RankingMap)

public void OnNotificationRankingUpdate(NotificationListenerService.RankingMap arg0)

Parameters

arg0 NotificationListenerService.RankingMap

NotificationListenerService.RankingMap

OnNotificationRemoved(StatusBarNotification)

public void OnNotificationRemoved(StatusBarNotification arg0)

Parameters

arg0 StatusBarNotification

StatusBarNotification

OnNotificationRemoved(StatusBarNotification, RankingMap)

public void OnNotificationRemoved(StatusBarNotification arg0, NotificationListenerService.RankingMap arg1)

Parameters

arg0 StatusBarNotification

StatusBarNotification

arg1 NotificationListenerService.RankingMap

NotificationListenerService.RankingMap

OnNotificationRemoved(StatusBarNotification, RankingMap, int)

public void OnNotificationRemoved(StatusBarNotification arg0, NotificationListenerService.RankingMap arg1, int arg2)

Parameters

arg0 StatusBarNotification

StatusBarNotification

arg1 NotificationListenerService.RankingMap

NotificationListenerService.RankingMap

arg2 int

int

OnSilentStatusBarIconsVisibilityChanged(bool)

public void OnSilentStatusBarIconsVisibilityChanged(bool arg0)

Parameters

arg0 bool

bool

RequestInterruptionFilter(int)

public void RequestInterruptionFilter(int arg0)

Parameters

arg0 int

int

RequestListenerHints(int)

public void RequestListenerHints(int arg0)

Parameters

arg0 int

int

RequestRebind(ComponentName)

public static void RequestRebind(ComponentName arg0)

Parameters

arg0 ComponentName

ComponentName

RequestUnbind()

public void RequestUnbind()

RequestUnbind(ComponentName)

public static void RequestUnbind(ComponentName arg0)

Parameters

arg0 ComponentName

ComponentName

SetNotificationsShown(String[])

public void SetNotificationsShown(String[] arg0)

Parameters

arg0 String[]

String

SnoozeNotification(String, long)

public void SnoozeNotification(String arg0, long arg1)

Parameters

arg0 String

String

arg1 long

long

UpdateNotificationChannel(String, UserHandle, NotificationChannel)

public void UpdateNotificationChannel(String arg0, UserHandle arg1, NotificationChannel arg2)

Parameters

arg0 String

String

arg1 UserHandle

UserHandle

arg2 NotificationChannel

NotificationChannel