Loading...
Searching...
No Matches
NotificationManagerBinding.java
Go to the documentation of this file.
1package com.navigine.idl.java.internal;
2
3import com.navigine.common.NativeObject;
4import com.navigine.common.Subscription;
5import com.navigine.idl.java.NotificationListener;
6import com.navigine.idl.java.NotificationManager;
7
13{
14 private final NativeObject nativeObject;
15
19 protected NotificationManagerBinding(NativeObject nativeObject)
20 {
21 this.nativeObject = nativeObject;
22 }
23
24 protected Subscription<NotificationListener> weakNotificationListenerSubscription = new Subscription<NotificationListener>() {
25 @Override
26 public NativeObject createNativeListener(NotificationListener listener) {
27 return createNotificationListener(listener);
28 }
29 };
30 private static native NativeObject createNotificationListener(NotificationListener listener);
31
32 // NotificationManager methods
33
34 @Override
36 {
37 native_addNotificationListener(listener);
38 }
39 private native void native_addNotificationListener(NotificationListener listener);
40
41 @Override
43 {
44 native_removeNotificationListener(listener);
45 }
46 private native void native_removeNotificationListener(NotificationListener listener);
47}