Loading...
Searching...
No Matches
com.navigine.idl.java.internal.NotificationManagerBinding Class Reference
+ Inheritance diagram for com.navigine.idl.java.internal.NotificationManagerBinding:

Public Member Functions

void addNotificationListener (NotificationListener listener)
 Method is used to add NotificationListener class element which will notify all incoming local notification events.
 
void removeNotificationListener (NotificationListener listener)
 Method is used for removing previously added NotificationListener class element.
 

Protected Member Functions

 NotificationManagerBinding (NativeObject nativeObject)
 

Protected Attributes

Subscription< NotificationListenerweakNotificationListenerSubscription
 

Detailed Description

Definition at line 12 of file NotificationManagerBinding.java.

Constructor & Destructor Documentation

◆ NotificationManagerBinding()

com.navigine.idl.java.internal.NotificationManagerBinding.NotificationManagerBinding ( NativeObject nativeObject)
inlineprotected

Invoked only from native code.

Definition at line 19 of file NotificationManagerBinding.java.

Member Function Documentation

◆ addNotificationListener()

void com.navigine.idl.java.internal.NotificationManagerBinding.addNotificationListener ( NotificationListener listener)
inline

Method is used to add NotificationListener class element which will notify all incoming local notification events.

Note
Do not forget to remove listener if it is no longer needed!
Parameters
listenerCorresponding NotificationListener listener class.

Java code snippet:

// Add notification listener
notificationManager.addNotificationListener(notificationListener);
System.out.println("Added notification listener");

Kotlin code snippet:

// Add notification listener
manager.addNotificationListener(listener)
println("Added notification listener")

Reimplemented from com.navigine.idl.java.NotificationManager.

Definition at line 35 of file NotificationManagerBinding.java.

◆ removeNotificationListener()

void com.navigine.idl.java.internal.NotificationManagerBinding.removeNotificationListener ( NotificationListener listener)
inline

Method is used for removing previously added NotificationListener class element.

Parameters
listenerCorresponding NotificationListener class to remove.

Java code snippet:

// Remove notification listener
notificationManager.removeNotificationListener(notificationListener);
System.out.println("Removed notification listener");

Kotlin code snippet:

// Remove notification listener
manager.removeNotificationListener(listener)
println("Removed notification listener")

Reimplemented from com.navigine.idl.java.NotificationManager.

Definition at line 42 of file NotificationManagerBinding.java.

Member Data Documentation

◆ weakNotificationListenerSubscription

Subscription<NotificationListener> com.navigine.idl.java.internal.NotificationManagerBinding.weakNotificationListenerSubscription
protected
Initial value:
= new Subscription<NotificationListener>() {
@Override
public NativeObject createNativeListener(NotificationListener listener) {
return createNotificationListener(listener);
}
}

Definition at line 24 of file NotificationManagerBinding.java.


The documentation for this class was generated from the following file: