[android] - add experimental pointer (#13889)

This commit is contained in:
Tobrun
2019-02-07 15:22:36 +01:00
committed by GitHub
parent b8d2038810
commit 47fa19444e
3 changed files with 18 additions and 1 deletions

View File

@@ -228,6 +228,13 @@ public final class MapboxMap {
}
}
/**
* Experimental feature. Do not use.
*/
long getNativeMapPtr() {
return nativeMapView.getNativePtr();
}
// Style
/**

View File

@@ -70,7 +70,7 @@ final class NativeMapView implements NativeMap {
// Holds the pointer to JNI NativeMapView
@Keep
long nativePtr = 0;
private long nativePtr = 0;
// Listener invoked to return a bitmap of the map
private MapboxMap.SnapshotReadyCallback snapshotReadyCallback;
@@ -1378,6 +1378,10 @@ final class NativeMapView implements NativeMap {
return viewCallback.getHeight();
}
long getNativePtr() {
return nativePtr;
}
//
// Snapshot
//