Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit a7413def authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Update some Maps API details

parent 2a1ab70e
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -8,10 +8,14 @@ import com.google.android.gms.maps.internal.ICameraUpdateFactoryDelegate;
import com.google.android.gms.maps.model.internal.IBitmapDescriptorFactoryDelegate;

interface ICreator {
    void init(IObjectWrapper resources);
    IMapFragmentDelegate newMapFragmentDelegate(IObjectWrapper activity);
    IMapViewDelegate newMapViewDelegate(IObjectWrapper context, in GoogleMapOptions options);
    ICameraUpdateFactoryDelegate newCameraUpdateFactoryDelegate();
    IBitmapDescriptorFactoryDelegate newBitmapDescriptorFactoryDelegate();
    void initV2(IObjectWrapper resources, int flags);
    void init(IObjectWrapper resources) = 0;
    IMapFragmentDelegate newMapFragmentDelegate(IObjectWrapper activity) = 1;
    IMapViewDelegate newMapViewDelegate(IObjectWrapper context, in GoogleMapOptions options) = 2;
    ICameraUpdateFactoryDelegate newCameraUpdateFactoryDelegate() = 3;
    IBitmapDescriptorFactoryDelegate newBitmapDescriptorFactoryDelegate() = 4;
    void initV2(IObjectWrapper resources, int versionCode) = 5;
    //IStreetViewPanoramaViewDelegate newStreetViewPanoramaViewDelegate(IObjectWrapper context, in StreetViewPanoramaOptions options) = 6;
    //IStreetViewPanoramaFragmentDelegate newStreetViewPanoramaFragmentDelegate(IObjectWrapper activity) = 7;
    int getRendererType() = 8;
    void logInitialization(IObjectWrapper context, int preferredRenderer) = 9;
}
+3 −0
Original line number Diff line number Diff line
package com.google.android.gms.maps.model;

parcelable PatternItem;
+34 −21
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2015 microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 */

package com.google.android.gms.maps.model.internal;

import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.PatternItem;

interface IPolygonDelegate {
    void remove();
    String getId();
	void setPoints(in List<LatLng> points);
	List<LatLng> getPoints();
	void setHoles(in List holes);
	List getHoles();
	void setStrokeWidth(float width);
	float getStrokeWidth();
	void setStrokeColor(int color);
	int getStrokeColor();
	void setFillColor(int color);
	int getFillColor();
	void setZIndex(float zIndex);
	float getZIndex();
	void setVisible(boolean visible);
	boolean isVisible();
	void setGeodesic(boolean geod);
	boolean isGeodesic();
	boolean equalsRemote(IPolygonDelegate other);
	int hashCodeRemote();

    void remove() = 0;
    String getId() = 1;
	void setPoints(in List<LatLng> points) = 2;
	List<LatLng> getPoints() = 3;
	void setHoles(in List holes) = 4;
	List getHoles() = 5;
	void setStrokeWidth(float width) = 6;
	float getStrokeWidth() = 7;
	void setStrokeColor(int color) = 8;
	int getStrokeColor() = 9;
	void setFillColor(int color) = 10;
	int getFillColor() = 11;
	void setZIndex(float zIndex) = 12;
	float getZIndex() = 13;
	void setVisible(boolean visible) = 14;
	boolean isVisible() = 15;
	void setGeodesic(boolean geod) = 16;
	boolean isGeodesic() = 17;
	boolean equalsRemote(IPolygonDelegate other) = 18;
	int hashCodeRemote() = 19;
	void setClickable(boolean click) = 20;
	void setStrokeJointType(int type) = 22;
	int getStrokeJointType() = 23;
	void setStrokePattern(in List<PatternItem> items) = 24;
	List<PatternItem> getStrokePattern() = 25;
	void setTag(IObjectWrapper obj) = 26;
	IObjectWrapper getTag() = 27;
}
+39 −0
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2022 microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 * Notice: Portions of this file are reproduced from work created and shared by Google and used
 *         according to terms described in the Creative Commons 4.0 Attribution License.
 *         See https://developers.google.com/readme/policies for details.
 */

package com.google.android.gms.maps.model;

import androidx.annotation.NonNull;

import org.microg.gms.common.PublicApi;

/**
 * An immutable class representing a dash used in the stroke pattern for a Polyline or the outline of a Polygon or Circle.
 */
@PublicApi
public final class Dash extends PatternItem {
    /**
     * Length in pixels (non-negative).
     */
    public final float length;

    /**
     * Constructs a {@code Dash}.
     * @param length Length in pixels. Negative value will be clamped to zero.
     */
    public Dash(float length) {
        super(0, Math.max(length, 0));
        this.length = Math.max(length, 0);
    }

    @NonNull
    @Override
    public String toString() {
        return "[Dash: length=" + length + "]";
    }
}
+32 −0
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2022 microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 * Notice: Portions of this file are reproduced from work created and shared by Google and used
 *         according to terms described in the Creative Commons 4.0 Attribution License.
 *         See https://developers.google.com/readme/policies for details.
 */

package com.google.android.gms.maps.model;

import androidx.annotation.NonNull;

import org.microg.gms.common.PublicApi;

/**
 * An immutable class representing a dot used in the stroke pattern for a Polyline or the outline of a Polygon or Circle.
 */
@PublicApi
public final class Dot extends PatternItem {
    /**
     * Constructs a {@code Dot}.
     */
    public Dot() {
        super(1, null);
    }

    @NonNull
    @Override
    public String toString() {
        return "[Dot]";
    }
}
Loading