Loading...
Searching...
No Matches
NavigineSdkBinding.java
Go to the documentation of this file.
1package com.navigine.idl.java.internal;
2
3import com.navigine.common.NativeObject;
4import com.navigine.idl.java.AsyncRouteManager;
5import com.navigine.idl.java.BeaconProximityEstimator;
6import com.navigine.idl.java.LocationEditManager;
7import com.navigine.idl.java.LocationListManager;
8import com.navigine.idl.java.LocationManager;
9import com.navigine.idl.java.LocationWindow;
10import com.navigine.idl.java.MeasurementManager;
11import com.navigine.idl.java.MqttSession;
12import com.navigine.idl.java.NavigationManager;
13import com.navigine.idl.java.NavigineSdk;
14import com.navigine.idl.java.NotificationManager;
15import com.navigine.idl.java.ResourceManager;
16import com.navigine.idl.java.RouteManager;
17import com.navigine.idl.java.StorageManager;
18import com.navigine.idl.java.UserLocationLayer;
19import com.navigine.idl.java.ZoneManager;
20
25public final class NavigineSdkBinding extends NavigineSdk
26{
27 private final NativeObject nativeObject;
28
29 NavigineSdkBinding(NativeObject nativeObject)
30 {
31 this.nativeObject = nativeObject;
32 }
33
34 @Override
35 public native boolean isValid();
36
37 // NavigineSdk methods
38
39 @Override
40 public void setUserHash(String userHash)
41 {
42 native_setUserHash(userHash);
43 }
44 private native void native_setUserHash(String userHash);
45
46 @Override
47 public void setServer(String server)
48 {
49 native_setServer(server);
50 }
51 private native void native_setServer(String server);
52
53 @Override
54 public void reset()
55 {
56 native_reset();
57 }
58 private native void native_reset();
59
60 @Override
62 {
63 return native_getLocationManager();
64 }
65 private native LocationManager native_getLocationManager();
66
67 @Override
69 {
70 return native_getNavigationManager(locationManager);
71 }
72 private native NavigationManager native_getNavigationManager(LocationManager locationManager);
73
74 @Override
76 {
77 return native_getZoneManager(navigationManager);
78 }
79 private native ZoneManager native_getZoneManager(NavigationManager navigationManager);
80
81 @Override
83 {
84 return native_getAsyncRouteManager(locationManager, navigationManager);
85 }
86 private native AsyncRouteManager native_getAsyncRouteManager(LocationManager locationManager, NavigationManager navigationManager);
87
88 @Override
90 {
91 return native_getNotificationManager(locationManager);
92 }
93 private native NotificationManager native_getNotificationManager(LocationManager locationManager);
94
95 @Override
96 public String getErrorDescription(int errorCode)
97 {
98 return native_getErrorDescription(errorCode);
99 }
100 private native String native_getErrorDescription(int errorCode);
101
102 @Override
103 public LocationWindow createLocationWindow(com.navigine.view.PlatformView platformView)
104 {
105 return native_createLocationWindow(platformView);
106 }
107 private native LocationWindow native_createLocationWindow(com.navigine.view.PlatformView platformView);
108
109 @Override
111 {
112 return native_getStorageManager();
113 }
114 private native StorageManager native_getStorageManager();
115
116 @Override
118 {
119 return native_getUserLocationLayer(locationWindow);
120 }
121 private native UserLocationLayer native_getUserLocationLayer(LocationWindow locationWindow);
122
123 @Override
124 public RouteManager getRouteManager(LocationManager locationManager, NavigationManager navigationManager)
125 {
126 return native_getRouteManager(locationManager, navigationManager);
127 }
128 private native RouteManager native_getRouteManager(LocationManager locationManager, NavigationManager navigationManager);
129
130 @Override
132 {
133 return native_getMeasurementManager(locationManager);
134 }
135 private native MeasurementManager native_getMeasurementManager(LocationManager locationManager);
136
137 @Override
138 public ResourceManager getResourceManager(LocationManager locationManager)
139 {
140 return native_getResourceManager(locationManager);
141 }
142 private native ResourceManager native_getResourceManager(LocationManager locationManager);
143
144 @Override
145 public LocationEditManager getLocationEditManager(LocationManager locationManager)
146 {
147 return native_getLocationEditManager(locationManager);
148 }
149 private native LocationEditManager native_getLocationEditManager(LocationManager locationManager);
150
151 @Override
152 public BeaconProximityEstimator getBeaconProximityEstimator(LocationManager locationManager)
153 {
154 return native_getBeaconProximityEstimator(locationManager);
155 }
156 private native BeaconProximityEstimator native_getBeaconProximityEstimator(LocationManager locationManager);
157
158 @Override
160 {
161 return native_getMqttSession(navigationManager);
162 }
163 private native MqttSession native_getMqttSession(NavigationManager navigationManager);
164
165 @Override
167 {
168 return native_getLocationListManager();
169 }
170 private native LocationListManager native_getLocationListManager();
171 public static native NavigineSdk getInstance();
172
173 public static native String getVersion();
174
175 public static native String getDeviceId();
176
177 public static native String getUserAgent();
178
179 public static native long getRelativeTime();
180}