Loading...
Searching...
No Matches
LocationListManagerBinding.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.LocationInfo;
6import com.navigine.idl.java.LocationListListener;
7import com.navigine.idl.java.LocationListManager;
8import java.util.HashMap;
9
15{
16 private final NativeObject nativeObject;
17
21 protected LocationListManagerBinding(NativeObject nativeObject)
22 {
23 this.nativeObject = nativeObject;
24 }
25
26 protected Subscription<LocationListListener> weakLocationListListenerSubscription = new Subscription<LocationListListener>() {
27 @Override
28 public NativeObject createNativeListener(LocationListListener listener) {
29 return createLocationListListener(listener);
30 }
31 };
32 private static native NativeObject createLocationListListener(LocationListListener listener);
33
34 // LocationListManager methods
35
36 @Override
38 {
39 native_addLocationListListener(listener);
40 }
41 private native void native_addLocationListListener(LocationListListener listener);
42
43 @Override
45 {
46 native_removeLocationListListener(listener);
47 }
48 private native void native_removeLocationListListener(LocationListListener listener);
49
50 @Override
51 public void updateLocationList()
52 {
53 native_updateLocationList();
54 }
55 private native void native_updateLocationList();
56
57 @Override
58 public HashMap<Integer, LocationInfo> getLocationList()
59 {
60 return native_getLocationList();
61 }
62 private native HashMap<Integer, LocationInfo> native_getLocationList();
63}