580 public abstract void applyLayerFilter(String layer, ArrayList<MapFilterCondition> conditions);
922 CppProxy.setDebugFlag(flag,
943 return CppProxy.getDebugFlag(flag);
948 private final long nativeRef;
949 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
951 private CppProxy(
long nativeRef)
953 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
954 this.nativeRef = nativeRef;
957 private native
void nativeDestroy(
long nativeRef);
958 public void _djinni_private_destroy()
960 boolean destroyed = this.destroyed.getAndSet(
true);
961 if (!destroyed) nativeDestroy(this.nativeRef);
963 protected void finalize() throws java.lang.Throwable
965 _djinni_private_destroy();
972 public void setSublocationId(
int id)
974 assert !this.destroyed.get() :
"trying to use a destroyed object";
975 native_setSublocationId(this.nativeRef,
id);
977 private native
void native_setSublocationId(
long _nativeRef,
int id);
980 public Integer getSublocationId()
982 assert !this.destroyed.get() :
"trying to use a destroyed object";
983 return native_getSublocationId(this.nativeRef);
985 private native Integer native_getSublocationId(
long _nativeRef);
988 public Camera getEnclosingCamera(BoundingBox boundingBox)
990 assert !this.destroyed.get() :
"trying to use a destroyed object";
991 return native_getEnclosingCamera(this.nativeRef, boundingBox);
993 private native Camera native_getEnclosingCamera(
long _nativeRef, BoundingBox boundingBox);
996 public Point screenPositionToMeters(android.graphics.PointF point)
998 assert !this.destroyed.get() :
"trying to use a destroyed object";
999 return native_screenPositionToMeters(this.nativeRef, point);
1001 private native Point native_screenPositionToMeters(
long _nativeRef, android.graphics.PointF point);
1004 public android.graphics.PointF metersToScreenPosition(Point point,
boolean clipToViewport)
1006 assert !this.destroyed.get() :
"trying to use a destroyed object";
1007 return native_metersToScreenPosition(this.nativeRef, point, clipToViewport);
1009 private native android.graphics.PointF native_metersToScreenPosition(
long _nativeRef, Point point,
boolean clipToViewport);
1012 public CircleMapObject addCircleMapObject()
1014 assert !this.destroyed.get() :
"trying to use a destroyed object";
1015 return native_addCircleMapObject(this.nativeRef);
1017 private native CircleMapObject native_addCircleMapObject(
long _nativeRef);
1020 public boolean removeCircleMapObject(CircleMapObject circleMapObject)
1022 assert !this.destroyed.get() :
"trying to use a destroyed object";
1023 return native_removeCircleMapObject(this.nativeRef, circleMapObject);
1025 private native
boolean native_removeCircleMapObject(
long _nativeRef, CircleMapObject circleMapObject);
1028 public IconMapObject addIconMapObject()
1030 assert !this.destroyed.get() :
"trying to use a destroyed object";
1031 return native_addIconMapObject(this.nativeRef);
1033 private native IconMapObject native_addIconMapObject(
long _nativeRef);
1036 public boolean removeIconMapObject(IconMapObject iconMapObject)
1038 assert !this.destroyed.get() :
"trying to use a destroyed object";
1039 return native_removeIconMapObject(this.nativeRef, iconMapObject);
1041 private native
boolean native_removeIconMapObject(
long _nativeRef, IconMapObject iconMapObject);
1044 public PolygonMapObject addPolygonMapObject()
1046 assert !this.destroyed.get() :
"trying to use a destroyed object";
1047 return native_addPolygonMapObject(this.nativeRef);
1049 private native PolygonMapObject native_addPolygonMapObject(
long _nativeRef);
1052 public boolean removePolygonMapObject(PolygonMapObject polygonMapObject)
1054 assert !this.destroyed.get() :
"trying to use a destroyed object";
1055 return native_removePolygonMapObject(this.nativeRef, polygonMapObject);
1057 private native
boolean native_removePolygonMapObject(
long _nativeRef, PolygonMapObject polygonMapObject);
1060 public PolylineMapObject addPolylineMapObject()
1062 assert !this.destroyed.get() :
"trying to use a destroyed object";
1063 return native_addPolylineMapObject(this.nativeRef);
1065 private native PolylineMapObject native_addPolylineMapObject(
long _nativeRef);
1068 public boolean removePolylineMapObject(PolylineMapObject polylineMapObject)
1070 assert !this.destroyed.get() :
"trying to use a destroyed object";
1071 return native_removePolylineMapObject(this.nativeRef, polylineMapObject);
1073 private native
boolean native_removePolylineMapObject(
long _nativeRef, PolylineMapObject polylineMapObject);
1076 public DottedPolylineMapObject addDottedPolylineMapObject()
1078 assert !this.destroyed.get() :
"trying to use a destroyed object";
1079 return native_addDottedPolylineMapObject(this.nativeRef);
1081 private native DottedPolylineMapObject native_addDottedPolylineMapObject(
long _nativeRef);
1084 public boolean removeDottedPolylineMapObject(DottedPolylineMapObject dottedPolylineMapObject)
1086 assert !this.destroyed.get() :
"trying to use a destroyed object";
1087 return native_removeDottedPolylineMapObject(this.nativeRef, dottedPolylineMapObject);
1089 private native
boolean native_removeDottedPolylineMapObject(
long _nativeRef, DottedPolylineMapObject dottedPolylineMapObject);
1092 public void removeAllMapObjects()
1094 assert !this.destroyed.get() :
"trying to use a destroyed object";
1095 native_removeAllMapObjects(this.nativeRef);
1097 private native
void native_removeAllMapObjects(
long _nativeRef);
1100 public void pickMapObjectAt(android.graphics.PointF point)
1102 assert !this.destroyed.get() :
"trying to use a destroyed object";
1103 native_pickMapObjectAt(this.nativeRef, point);
1105 private native
void native_pickMapObjectAt(
long _nativeRef, android.graphics.PointF point);
1108 public void pickMapFeatureAt(android.graphics.PointF point)
1110 assert !this.destroyed.get() :
"trying to use a destroyed object";
1111 native_pickMapFeatureAt(this.nativeRef, point);
1113 private native
void native_pickMapFeatureAt(
long _nativeRef, android.graphics.PointF point);
1116 public void addPickListener(PickListener listener)
1118 assert !this.destroyed.get() :
"trying to use a destroyed object";
1119 native_addPickListener(this.nativeRef, listener);
1121 private native
void native_addPickListener(
long _nativeRef, PickListener listener);
1124 public void removePickListener(PickListener listener)
1126 assert !this.destroyed.get() :
"trying to use a destroyed object";
1127 native_removePickListener(this.nativeRef, listener);
1129 private native
void native_removePickListener(
long _nativeRef, PickListener listener);
1132 public void addInputListener(InputListener listener)
1134 assert !this.destroyed.get() :
"trying to use a destroyed object";
1135 native_addInputListener(this.nativeRef, listener);
1137 private native
void native_addInputListener(
long _nativeRef, InputListener listener);
1140 public void removeInputListener(InputListener listener)
1142 assert !this.destroyed.get() :
"trying to use a destroyed object";
1143 native_removeInputListener(this.nativeRef, listener);
1145 private native
void native_removeInputListener(
long _nativeRef, InputListener listener);
1148 public void addCameraListener(CameraListener listener)
1150 assert !this.destroyed.get() :
"trying to use a destroyed object";
1151 native_addCameraListener(this.nativeRef, listener);
1153 private native
void native_addCameraListener(
long _nativeRef, CameraListener listener);
1156 public void removeCameraListener(CameraListener listener)
1158 assert !this.destroyed.get() :
"trying to use a destroyed object";
1159 native_removeCameraListener(this.nativeRef, listener);
1161 private native
void native_removeCameraListener(
long _nativeRef, CameraListener listener);
1164 public void addSublocationChangeListener(SublocationChangeListener listener)
1166 assert !this.destroyed.get() :
"trying to use a destroyed object";
1167 native_addSublocationChangeListener(this.nativeRef, listener);
1169 private native
void native_addSublocationChangeListener(
long _nativeRef, SublocationChangeListener listener);
1172 public void removeSublocationChangeListener(SublocationChangeListener listener)
1174 assert !this.destroyed.get() :
"trying to use a destroyed object";
1175 native_removeSublocationChangeListener(this.nativeRef, listener);
1177 private native
void native_removeSublocationChangeListener(
long _nativeRef, SublocationChangeListener listener);
1180 public void addBuildingListener(BuildingListener listener)
1182 assert !this.destroyed.get() :
"trying to use a destroyed object";
1183 native_addBuildingListener(this.nativeRef, listener);
1185 private native
void native_addBuildingListener(
long _nativeRef, BuildingListener listener);
1188 public void removeBuildingListener(BuildingListener listener)
1190 assert !this.destroyed.get() :
"trying to use a destroyed object";
1191 native_removeBuildingListener(this.nativeRef, listener);
1193 private native
void native_removeBuildingListener(
long _nativeRef, BuildingListener listener);
1196 public void flyTo(Camera camera,
int duration, CameraCallback callback)
1198 assert !this.destroyed.get() :
"trying to use a destroyed object";
1199 native_flyTo(this.nativeRef, camera, duration, callback);
1201 private native
void native_flyTo(
long _nativeRef, Camera camera,
int duration, CameraCallback callback);
1204 public void moveTo(Camera camera,
int duration, AnimationType animationType, CameraCallback callback)
1206 assert !this.destroyed.get() :
"trying to use a destroyed object";
1207 native_moveTo(this.nativeRef, camera, duration, animationType, callback);
1209 private native
void native_moveTo(
long _nativeRef, Camera camera,
int duration, AnimationType animationType, CameraCallback callback);
1212 public boolean selectMapFeature(String featureId)
1214 assert !this.destroyed.get() :
"trying to use a destroyed object";
1215 return native_selectMapFeature(this.nativeRef, featureId);
1217 private native
boolean native_selectMapFeature(
long _nativeRef, String featureId);
1220 public boolean deselectMapFeature(String featureId)
1222 assert !this.destroyed.get() :
"trying to use a destroyed object";
1223 return native_deselectMapFeature(this.nativeRef, featureId);
1225 private native
boolean native_deselectMapFeature(
long _nativeRef, String featureId);
1228 public void deselectAllMapFeatures()
1230 assert !this.destroyed.get() :
"trying to use a destroyed object";
1231 native_deselectAllMapFeatures(this.nativeRef);
1233 private native
void native_deselectAllMapFeatures(
long _nativeRef);
1236 public void applyLayerFilter(String layer, ArrayList<MapFilterCondition> conditions)
1238 assert !this.destroyed.get() :
"trying to use a destroyed object";
1239 native_applyLayerFilter(this.nativeRef, layer, conditions);
1241 private native
void native_applyLayerFilter(
long _nativeRef, String layer, ArrayList<MapFilterCondition> conditions);
1244 public float getZoomFactor()
1246 assert !this.destroyed.get() :
"trying to use a destroyed object";
1247 return native_getZoomFactor(this.nativeRef);
1249 private native
float native_getZoomFactor(
long _nativeRef);
1252 public void setZoomFactor(
float newZoomFactor)
1254 assert !this.destroyed.get() :
"trying to use a destroyed object";
1255 native_setZoomFactor(this.nativeRef, newZoomFactor);
1257 private native
void native_setZoomFactor(
long _nativeRef,
float newZoomFactor);
1260 public float getMinZoomFactor()
1262 assert !this.destroyed.get() :
"trying to use a destroyed object";
1263 return native_getMinZoomFactor(this.nativeRef);
1265 private native
float native_getMinZoomFactor(
long _nativeRef);
1268 public void setMinZoomFactor(
float newMinZoomFactor)
1270 assert !this.destroyed.get() :
"trying to use a destroyed object";
1271 native_setMinZoomFactor(this.nativeRef, newMinZoomFactor);
1273 private native
void native_setMinZoomFactor(
long _nativeRef,
float newMinZoomFactor);
1276 public float getMaxZoomFactor()
1278 assert !this.destroyed.get() :
"trying to use a destroyed object";
1279 return native_getMaxZoomFactor(this.nativeRef);
1281 private native
float native_getMaxZoomFactor(
long _nativeRef);
1284 public void setMaxZoomFactor(
float newMaxZoomFactor)
1286 assert !this.destroyed.get() :
"trying to use a destroyed object";
1287 native_setMaxZoomFactor(this.nativeRef, newMaxZoomFactor);
1289 private native
void native_setMaxZoomFactor(
long _nativeRef,
float newMaxZoomFactor);
1292 public boolean getStickToBorder()
1294 assert !this.destroyed.get() :
"trying to use a destroyed object";
1295 return native_getStickToBorder(this.nativeRef);
1297 private native
boolean native_getStickToBorder(
long _nativeRef);
1300 public void setStickToBorder(
boolean newStickToBorder)
1302 assert !this.destroyed.get() :
"trying to use a destroyed object";
1303 native_setStickToBorder(this.nativeRef, newStickToBorder);
1305 private native
void native_setStickToBorder(
long _nativeRef,
boolean newStickToBorder);
1308 public Camera getCamera()
1310 assert !this.destroyed.get() :
"trying to use a destroyed object";
1311 return native_getCamera(this.nativeRef);
1313 private native Camera native_getCamera(
long _nativeRef);
1316 public void setCamera(Camera newCamera)
1318 assert !this.destroyed.get() :
"trying to use a destroyed object";
1319 native_setCamera(this.nativeRef, newCamera);
1321 private native
void native_setCamera(
long _nativeRef, Camera newCamera);
1324 public boolean getRotateGestureEnabled()
1326 assert !this.destroyed.get() :
"trying to use a destroyed object";
1327 return native_getRotateGestureEnabled(this.nativeRef);
1329 private native
boolean native_getRotateGestureEnabled(
long _nativeRef);
1332 public void setRotateGestureEnabled(
boolean newRotateGestureEnabled)
1334 assert !this.destroyed.get() :
"trying to use a destroyed object";
1335 native_setRotateGestureEnabled(this.nativeRef, newRotateGestureEnabled);
1337 private native
void native_setRotateGestureEnabled(
long _nativeRef,
boolean newRotateGestureEnabled);
1340 public boolean getTiltGesturesEnabled()
1342 assert !this.destroyed.get() :
"trying to use a destroyed object";
1343 return native_getTiltGesturesEnabled(this.nativeRef);
1345 private native
boolean native_getTiltGesturesEnabled(
long _nativeRef);
1348 public void setTiltGesturesEnabled(
boolean newTiltGesturesEnabled)
1350 assert !this.destroyed.get() :
"trying to use a destroyed object";
1351 native_setTiltGesturesEnabled(this.nativeRef, newTiltGesturesEnabled);
1353 private native
void native_setTiltGesturesEnabled(
long _nativeRef,
boolean newTiltGesturesEnabled);
1356 public boolean getScrollGesturesEnabled()
1358 assert !this.destroyed.get() :
"trying to use a destroyed object";
1359 return native_getScrollGesturesEnabled(this.nativeRef);
1361 private native
boolean native_getScrollGesturesEnabled(
long _nativeRef);
1364 public void setScrollGesturesEnabled(
boolean newScrollGesturesEnabled)
1366 assert !this.destroyed.get() :
"trying to use a destroyed object";
1367 native_setScrollGesturesEnabled(this.nativeRef, newScrollGesturesEnabled);
1369 private native
void native_setScrollGesturesEnabled(
long _nativeRef,
boolean newScrollGesturesEnabled);
1372 public boolean getZoomGesturesEnabled()
1374 assert !this.destroyed.get() :
"trying to use a destroyed object";
1375 return native_getZoomGesturesEnabled(this.nativeRef);
1377 private native
boolean native_getZoomGesturesEnabled(
long _nativeRef);
1380 public void setZoomGesturesEnabled(
boolean newZoomGesturesEnabled)
1382 assert !this.destroyed.get() :
"trying to use a destroyed object";
1383 native_setZoomGesturesEnabled(this.nativeRef, newZoomGesturesEnabled);
1385 private native
void native_setZoomGesturesEnabled(
long _nativeRef,
boolean newZoomGesturesEnabled);
1388 public float getPickRadius()
1390 assert !this.destroyed.get() :
"trying to use a destroyed object";
1391 return native_getPickRadius(this.nativeRef);
1393 private native
float native_getPickRadius(
long _nativeRef);
1396 public void setPickRadius(
float newPickRadius)
1398 assert !this.destroyed.get() :
"trying to use a destroyed object";
1399 native_setPickRadius(this.nativeRef, newPickRadius);
1401 private native
void native_setPickRadius(
long _nativeRef,
float newPickRadius);
1404 public ArrayList<String> getSelectedMapFeatures()
1406 assert !this.destroyed.get() :
"trying to use a destroyed object";
1407 return native_getSelectedMapFeatures(this.nativeRef);
1409 private native ArrayList<String> native_getSelectedMapFeatures(
long _nativeRef);
1411 public static native
void setDebugFlag(DebugFlag flag,
boolean on);
1413 public static native
boolean getDebugFlag(DebugFlag flag);