Skip to content

Commit

Permalink
update api files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pengdev committed Nov 18, 2022
1 parent 5f531c3 commit bcfc0c6
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 1 deletion.
73 changes: 72 additions & 1 deletion plugin-locationcomponent/api/metalava.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
// Signature format: 3.0
package com.mapbox.maps.plugin.locationcomponent {

@com.mapbox.maps.MapboxExperimental public final class CustomJourneyLocationProvider implements com.mapbox.maps.plugin.locationcomponent.LocationProvider {
ctor public CustomJourneyLocationProvider();
method public void loadJourney(com.mapbox.maps.plugin.locationcomponent.Journey journey);
method public void registerLocationConsumer(com.mapbox.maps.plugin.locationcomponent.LocationConsumer locationConsumer);
method public void unRegisterLocationConsumer(com.mapbox.maps.plugin.locationcomponent.LocationConsumer locationConsumer);
}

public final class DefaultLocationProvider implements com.mapbox.maps.plugin.locationcomponent.LocationProvider {
ctor public DefaultLocationProvider(android.content.Context context);
method public void addOnCompassCalibrationListener(com.mapbox.maps.plugin.locationcomponent.LocationCompassCalibrationListener listener);
Expand All @@ -10,6 +17,27 @@ package com.mapbox.maps.plugin.locationcomponent {
method public void updatePuckBearingSource(com.mapbox.maps.plugin.PuckBearingSource source);
}

@com.mapbox.maps.MapboxExperimental public final class Journey {
ctor public Journey(double speed = 100.0, double angularSpeed = 100.0);
method public double getAngularSpeed();
method public java.util.List<com.mapbox.geojson.Point> getRemainingLocationsInQueue();
method public double getSpeed();
method public void observeJourneyUpdates(com.mapbox.maps.plugin.locationcomponent.JourneyDataObserver observer);
method public void pause();
method public void queueLocationUpdate(com.mapbox.geojson.Point location);
method public void queueLocationUpdates(java.util.List<com.mapbox.geojson.Point> locations);
method public void restart();
method public void resume();
method public void start();
property public final double angularSpeed;
property public final java.util.List<com.mapbox.geojson.Point> remainingLocationsInQueue;
property public final double speed;
}

public fun interface JourneyDataObserver {
method public boolean onNewData(com.mapbox.geojson.Point location, double bearing, long locationAnimationDurationMs, long bearingAnimateDurationMs);
}

public fun interface LocationCompassCalibrationListener {
method public void onCompassCalibrationNeeded();
}
Expand All @@ -35,8 +63,49 @@ package com.mapbox.maps.plugin.locationcomponent {
field public static final long TRANSITION_ANIMATION_DURATION_MS = 750L; // 0x2eeL
}

public final class LocationComponentInitOptions {
method public String! getBearingIconImageId();
method public String! getPuck2DLayerId();
method public String! getPuck3DLayerId();
method public String! getPuck3DSourceId();
method public String! getShadowIconImageId();
method public String! getTopIconImageId();
property public final String! bearingIconImageId;
property public final String! puck2DLayerId;
property public final String! puck3DLayerId;
property public final String! puck3DSourceId;
property public final String! shadowIconImageId;
property public final String! topIconImageId;
}

public static final class LocationComponentInitOptions.Builder {
ctor public LocationComponentInitOptions.Builder();
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions build();
method public String getBearingIconImageId();
method public String getPuck2DLayerId();
method public String getPuck3DLayerId();
method public String getPuck3DSourceId();
method public String getShadowIconImageId();
method public String getTopIconImageId();
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setBearingIconImageId(String bearingIconImageId);
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setPuck2DLayerId(String puck2DLayerId);
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setPuck3DLayerId(String puck3DLayerId);
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setPuck3DSourceId(String puck3DSourceId);
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setShadowIconImageId(String shadowIconImageId);
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setTopIconImageId(String topIconImageId);
property public final String bearingIconImageId;
property public final String puck2DLayerId;
property public final String puck3DLayerId;
property public final String puck3DSourceId;
property public final String shadowIconImageId;
property public final String topIconImageId;
}

public final class LocationComponentInitOptionsKt {
}

public final class LocationComponentPluginImpl extends com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettingsBase2 implements com.mapbox.maps.plugin.locationcomponent.LocationComponentPlugin2 com.mapbox.maps.plugin.locationcomponent.LocationConsumer2 {
ctor public LocationComponentPluginImpl();
ctor public LocationComponentPluginImpl(com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions locationComponentInitOptions = LocationComponentInitOptions.<init>().build());
method public void addOnIndicatorAccuracyRadiusChangedListener(com.mapbox.maps.plugin.locationcomponent.OnIndicatorAccuracyRadiusChangedListener listener);
method public void addOnIndicatorBearingChangedListener(com.mapbox.maps.plugin.locationcomponent.OnIndicatorBearingChangedListener listener);
method public void addOnIndicatorPositionChangedListener(com.mapbox.maps.plugin.locationcomponent.OnIndicatorPositionChangedListener listener);
Expand All @@ -45,6 +114,7 @@ package com.mapbox.maps.plugin.locationcomponent {
method public void bind(android.content.Context context, android.util.AttributeSet? attrs, float pixelRatio);
method protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings getInternalSettings();
method protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings2 getInternalSettings2();
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions getLocationComponentInitOptions();
method public com.mapbox.maps.plugin.locationcomponent.LocationProvider? getLocationProvider();
method public void isLocatedAt(com.mapbox.geojson.Point point, com.mapbox.maps.plugin.locationcomponent.PuckLocatedAtPointListener listener);
method public void onAccuracyRadiusUpdated(double[] radius, kotlin.jvm.functions.Function1<? super android.animation.ValueAnimator,kotlin.Unit>? options);
Expand All @@ -65,6 +135,7 @@ package com.mapbox.maps.plugin.locationcomponent {
method public void setLocationProvider(com.mapbox.maps.plugin.locationcomponent.LocationProvider locationProvider);
property protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings internalSettings;
property protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings2 internalSettings2;
property public final com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions locationComponentInitOptions;
field public com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings internalSettings;
field public com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings2 internalSettings2;
}
Expand Down
70 changes: 70 additions & 0 deletions plugin-locationcomponent/api/plugin-locationcomponent.api
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
public final class com/mapbox/maps/plugin/locationcomponent/CustomJourneyLocationProvider : com/mapbox/maps/plugin/locationcomponent/LocationProvider {
public fun <init> ()V
public final fun loadJourney (Lcom/mapbox/maps/plugin/locationcomponent/Journey;)V
public fun registerLocationConsumer (Lcom/mapbox/maps/plugin/locationcomponent/LocationConsumer;)V
public fun unRegisterLocationConsumer (Lcom/mapbox/maps/plugin/locationcomponent/LocationConsumer;)V
}

public final class com/mapbox/maps/plugin/locationcomponent/DefaultLocationProvider : com/mapbox/maps/plugin/locationcomponent/LocationProvider {
public fun <init> (Landroid/content/Context;)V
public final fun addOnCompassCalibrationListener (Lcom/mapbox/maps/plugin/locationcomponent/LocationCompassCalibrationListener;)V
Expand All @@ -7,6 +14,26 @@ public final class com/mapbox/maps/plugin/locationcomponent/DefaultLocationProvi
public final fun updatePuckBearingSource (Lcom/mapbox/maps/plugin/PuckBearingSource;)V
}

public final class com/mapbox/maps/plugin/locationcomponent/Journey {
public fun <init> ()V
public fun <init> (DD)V
public synthetic fun <init> (DDILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getAngularSpeed ()D
public final fun getRemainingLocationsInQueue ()Ljava/util/List;
public final fun getSpeed ()D
public final fun observeJourneyUpdates (Lcom/mapbox/maps/plugin/locationcomponent/JourneyDataObserver;)V
public final fun pause ()V
public final fun queueLocationUpdate (Lcom/mapbox/geojson/Point;)V
public final fun queueLocationUpdates (Ljava/util/List;)V
public final fun restart ()V
public final fun resume ()V
public final fun start ()V
}

public abstract interface class com/mapbox/maps/plugin/locationcomponent/JourneyDataObserver {
public abstract fun onNewData (Lcom/mapbox/geojson/Point;DJJ)Z
}

public abstract interface class com/mapbox/maps/plugin/locationcomponent/LocationCompassCalibrationListener {
public abstract fun onCompassCalibrationNeeded ()V
}
Expand All @@ -32,13 +59,56 @@ public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentCon
public static final field TRANSITION_ANIMATION_DURATION_MS J
}

public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions {
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun equals (Ljava/lang/Object;)Z
public final fun getBearingIconImageId ()Ljava/lang/String;
public final fun getPuck2DLayerId ()Ljava/lang/String;
public final fun getPuck3DLayerId ()Ljava/lang/String;
public final fun getPuck3DSourceId ()Ljava/lang/String;
public final fun getShadowIconImageId ()Ljava/lang/String;
public final fun getTopIconImageId ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder {
public fun <init> ()V
public final fun build ()Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;
public final fun getBearingIconImageId ()Ljava/lang/String;
public final fun getPuck2DLayerId ()Ljava/lang/String;
public final fun getPuck3DLayerId ()Ljava/lang/String;
public final fun getPuck3DSourceId ()Ljava/lang/String;
public final fun getShadowIconImageId ()Ljava/lang/String;
public final fun getTopIconImageId ()Ljava/lang/String;
public final fun setBearingIconImageId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
public final synthetic fun setBearingIconImageId (Ljava/lang/String;)V
public final fun setPuck2DLayerId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
public final synthetic fun setPuck2DLayerId (Ljava/lang/String;)V
public final fun setPuck3DLayerId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
public final synthetic fun setPuck3DLayerId (Ljava/lang/String;)V
public final fun setPuck3DSourceId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
public final synthetic fun setPuck3DSourceId (Ljava/lang/String;)V
public final fun setShadowIconImageId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
public final synthetic fun setShadowIconImageId (Ljava/lang/String;)V
public final fun setTopIconImageId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
public final synthetic fun setTopIconImageId (Ljava/lang/String;)V
}

public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptionsKt {
public static final synthetic fun LocationComponentInitOptions (Lkotlin/jvm/functions/Function1;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;
}

public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentPluginImpl : com/mapbox/maps/plugin/locationcomponent/generated/LocationComponentSettingsBase2, com/mapbox/maps/plugin/locationcomponent/LocationComponentPlugin2, com/mapbox/maps/plugin/locationcomponent/LocationConsumer2 {
public fun <init> ()V
public fun <init> (Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;)V
public synthetic fun <init> (Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun addOnIndicatorAccuracyRadiusChangedListener (Lcom/mapbox/maps/plugin/locationcomponent/OnIndicatorAccuracyRadiusChangedListener;)V
public fun addOnIndicatorBearingChangedListener (Lcom/mapbox/maps/plugin/locationcomponent/OnIndicatorBearingChangedListener;)V
public fun addOnIndicatorPositionChangedListener (Lcom/mapbox/maps/plugin/locationcomponent/OnIndicatorPositionChangedListener;)V
public fun bind (Landroid/content/Context;Landroid/util/AttributeSet;F)V
public fun cleanup ()V
public final fun getLocationComponentInitOptions ()Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;
public fun getLocationProvider ()Lcom/mapbox/maps/plugin/locationcomponent/LocationProvider;
public fun initialize ()V
public fun isLocatedAt (Lcom/mapbox/geojson/Point;Lcom/mapbox/maps/plugin/locationcomponent/PuckLocatedAtPointListener;)V
Expand Down

0 comments on commit bcfc0c6

Please sign in to comment.