[android] example custom layer - add context lost callback
This commit is contained in:
committed by
Ivo van Dongen
parent
d1e69c8baf
commit
779fc8aeee
@@ -69,6 +69,7 @@ public class CustomLayerActivity extends AppCompatActivity {
|
||||
ExampleCustomLayer.createContext(),
|
||||
ExampleCustomLayer.InitializeFunction,
|
||||
ExampleCustomLayer.RenderFunction,
|
||||
ExampleCustomLayer.ContextLostFunction, // Optional
|
||||
ExampleCustomLayer.DeinitializeFunction);
|
||||
mapboxMap.addLayerBelow(customLayer, "building");
|
||||
fab.setImageResource(R.drawable.ic_layers_clear);
|
||||
|
||||
@@ -11,5 +11,6 @@ public class ExampleCustomLayer {
|
||||
|
||||
public static long InitializeFunction;
|
||||
public static long RenderFunction;
|
||||
public static long ContextLostFunction;
|
||||
public static long DeinitializeFunction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user