summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/BackgroundLayer.java
blob: f7a71155ad46d4f23da251ecfe84a42c97a9c6d0 (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
38
39
40
41
42
43
44
45
46
// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make style-code-android`.
package com.mapbox.mapboxsdk.style.layers;

/**
 * Background Layer
 */
public class BackgroundLayer extends Layer {

    public BackgroundLayer(long nativePtr) {
        super(nativePtr);
    }

    public BackgroundLayer(String layerId) {
        initialize(layerId);
    }

    protected native void initialize(String layerId);


    // Property getters

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getBackgroundColor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetBackgroundColor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getBackgroundPattern() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetBackgroundPattern());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getBackgroundOpacity() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetBackgroundOpacity());
    }

    private native Object nativeGetBackgroundColor();

    private native Object nativeGetBackgroundPattern();

    private native Object nativeGetBackgroundOpacity();

}