summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/CustomLayer.java
blob: c03f8689fcdfb21a16060f6930becb866a7b367b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.mapbox.mapboxsdk.style.layers;

import android.support.annotation.Keep;

/**
 * Custom layer.
 * <p>
 * Experimental feature. Do not use.
 * </p>
 */
public class CustomLayer extends Layer {

  public CustomLayer(String id,
                     long host) {
    initialize(id, host);
  }

  @Keep
  CustomLayer(long nativePtr) {
    super(nativePtr);
  }

  public void update() {
    nativeUpdate();
  }

  @Keep
  protected native void initialize(String id, long host);

  @Keep
  protected native void nativeUpdate();

  @Override
  @Keep
  protected native void finalize() throws Throwable;

}