Skip to content

Commit bcfc0c6

Browse files
committed
update api files.
1 parent 5f531c3 commit bcfc0c6

File tree

2 files changed

+142
-1
lines changed

2 files changed

+142
-1
lines changed

plugin-locationcomponent/api/metalava.txt

+72-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
// Signature format: 3.0
22
package com.mapbox.maps.plugin.locationcomponent {
33

4+
@com.mapbox.maps.MapboxExperimental public final class CustomJourneyLocationProvider implements com.mapbox.maps.plugin.locationcomponent.LocationProvider {
5+
ctor public CustomJourneyLocationProvider();
6+
method public void loadJourney(com.mapbox.maps.plugin.locationcomponent.Journey journey);
7+
method public void registerLocationConsumer(com.mapbox.maps.plugin.locationcomponent.LocationConsumer locationConsumer);
8+
method public void unRegisterLocationConsumer(com.mapbox.maps.plugin.locationcomponent.LocationConsumer locationConsumer);
9+
}
10+
411
public final class DefaultLocationProvider implements com.mapbox.maps.plugin.locationcomponent.LocationProvider {
512
ctor public DefaultLocationProvider(android.content.Context context);
613
method public void addOnCompassCalibrationListener(com.mapbox.maps.plugin.locationcomponent.LocationCompassCalibrationListener listener);
@@ -10,6 +17,27 @@ package com.mapbox.maps.plugin.locationcomponent {
1017
method public void updatePuckBearingSource(com.mapbox.maps.plugin.PuckBearingSource source);
1118
}
1219

20+
@com.mapbox.maps.MapboxExperimental public final class Journey {
21+
ctor public Journey(double speed = 100.0, double angularSpeed = 100.0);
22+
method public double getAngularSpeed();
23+
method public java.util.List<com.mapbox.geojson.Point> getRemainingLocationsInQueue();
24+
method public double getSpeed();
25+
method public void observeJourneyUpdates(com.mapbox.maps.plugin.locationcomponent.JourneyDataObserver observer);
26+
method public void pause();
27+
method public void queueLocationUpdate(com.mapbox.geojson.Point location);
28+
method public void queueLocationUpdates(java.util.List<com.mapbox.geojson.Point> locations);
29+
method public void restart();
30+
method public void resume();
31+
method public void start();
32+
property public final double angularSpeed;
33+
property public final java.util.List<com.mapbox.geojson.Point> remainingLocationsInQueue;
34+
property public final double speed;
35+
}
36+
37+
public fun interface JourneyDataObserver {
38+
method public boolean onNewData(com.mapbox.geojson.Point location, double bearing, long locationAnimationDurationMs, long bearingAnimateDurationMs);
39+
}
40+
1341
public fun interface LocationCompassCalibrationListener {
1442
method public void onCompassCalibrationNeeded();
1543
}
@@ -35,8 +63,49 @@ package com.mapbox.maps.plugin.locationcomponent {
3563
field public static final long TRANSITION_ANIMATION_DURATION_MS = 750L; // 0x2eeL
3664
}
3765

66+
public final class LocationComponentInitOptions {
67+
method public String! getBearingIconImageId();
68+
method public String! getPuck2DLayerId();
69+
method public String! getPuck3DLayerId();
70+
method public String! getPuck3DSourceId();
71+
method public String! getShadowIconImageId();
72+
method public String! getTopIconImageId();
73+
property public final String! bearingIconImageId;
74+
property public final String! puck2DLayerId;
75+
property public final String! puck3DLayerId;
76+
property public final String! puck3DSourceId;
77+
property public final String! shadowIconImageId;
78+
property public final String! topIconImageId;
79+
}
80+
81+
public static final class LocationComponentInitOptions.Builder {
82+
ctor public LocationComponentInitOptions.Builder();
83+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions build();
84+
method public String getBearingIconImageId();
85+
method public String getPuck2DLayerId();
86+
method public String getPuck3DLayerId();
87+
method public String getPuck3DSourceId();
88+
method public String getShadowIconImageId();
89+
method public String getTopIconImageId();
90+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setBearingIconImageId(String bearingIconImageId);
91+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setPuck2DLayerId(String puck2DLayerId);
92+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setPuck3DLayerId(String puck3DLayerId);
93+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setPuck3DSourceId(String puck3DSourceId);
94+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setShadowIconImageId(String shadowIconImageId);
95+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions.Builder setTopIconImageId(String topIconImageId);
96+
property public final String bearingIconImageId;
97+
property public final String puck2DLayerId;
98+
property public final String puck3DLayerId;
99+
property public final String puck3DSourceId;
100+
property public final String shadowIconImageId;
101+
property public final String topIconImageId;
102+
}
103+
104+
public final class LocationComponentInitOptionsKt {
105+
}
106+
38107
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 {
39-
ctor public LocationComponentPluginImpl();
108+
ctor public LocationComponentPluginImpl(com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions locationComponentInitOptions = LocationComponentInitOptions.<init>().build());
40109
method public void addOnIndicatorAccuracyRadiusChangedListener(com.mapbox.maps.plugin.locationcomponent.OnIndicatorAccuracyRadiusChangedListener listener);
41110
method public void addOnIndicatorBearingChangedListener(com.mapbox.maps.plugin.locationcomponent.OnIndicatorBearingChangedListener listener);
42111
method public void addOnIndicatorPositionChangedListener(com.mapbox.maps.plugin.locationcomponent.OnIndicatorPositionChangedListener listener);
@@ -45,6 +114,7 @@ package com.mapbox.maps.plugin.locationcomponent {
45114
method public void bind(android.content.Context context, android.util.AttributeSet? attrs, float pixelRatio);
46115
method protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings getInternalSettings();
47116
method protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings2 getInternalSettings2();
117+
method public com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions getLocationComponentInitOptions();
48118
method public com.mapbox.maps.plugin.locationcomponent.LocationProvider? getLocationProvider();
49119
method public void isLocatedAt(com.mapbox.geojson.Point point, com.mapbox.maps.plugin.locationcomponent.PuckLocatedAtPointListener listener);
50120
method public void onAccuracyRadiusUpdated(double[] radius, kotlin.jvm.functions.Function1<? super android.animation.ValueAnimator,kotlin.Unit>? options);
@@ -65,6 +135,7 @@ package com.mapbox.maps.plugin.locationcomponent {
65135
method public void setLocationProvider(com.mapbox.maps.plugin.locationcomponent.LocationProvider locationProvider);
66136
property protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings internalSettings;
67137
property protected com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings2 internalSettings2;
138+
property public final com.mapbox.maps.plugin.locationcomponent.LocationComponentInitOptions locationComponentInitOptions;
68139
field public com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings internalSettings;
69140
field public com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettings2 internalSettings2;
70141
}

plugin-locationcomponent/api/plugin-locationcomponent.api

+70
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
public final class com/mapbox/maps/plugin/locationcomponent/CustomJourneyLocationProvider : com/mapbox/maps/plugin/locationcomponent/LocationProvider {
2+
public fun <init> ()V
3+
public final fun loadJourney (Lcom/mapbox/maps/plugin/locationcomponent/Journey;)V
4+
public fun registerLocationConsumer (Lcom/mapbox/maps/plugin/locationcomponent/LocationConsumer;)V
5+
public fun unRegisterLocationConsumer (Lcom/mapbox/maps/plugin/locationcomponent/LocationConsumer;)V
6+
}
7+
18
public final class com/mapbox/maps/plugin/locationcomponent/DefaultLocationProvider : com/mapbox/maps/plugin/locationcomponent/LocationProvider {
29
public fun <init> (Landroid/content/Context;)V
310
public final fun addOnCompassCalibrationListener (Lcom/mapbox/maps/plugin/locationcomponent/LocationCompassCalibrationListener;)V
@@ -7,6 +14,26 @@ public final class com/mapbox/maps/plugin/locationcomponent/DefaultLocationProvi
714
public final fun updatePuckBearingSource (Lcom/mapbox/maps/plugin/PuckBearingSource;)V
815
}
916

17+
public final class com/mapbox/maps/plugin/locationcomponent/Journey {
18+
public fun <init> ()V
19+
public fun <init> (DD)V
20+
public synthetic fun <init> (DDILkotlin/jvm/internal/DefaultConstructorMarker;)V
21+
public final fun getAngularSpeed ()D
22+
public final fun getRemainingLocationsInQueue ()Ljava/util/List;
23+
public final fun getSpeed ()D
24+
public final fun observeJourneyUpdates (Lcom/mapbox/maps/plugin/locationcomponent/JourneyDataObserver;)V
25+
public final fun pause ()V
26+
public final fun queueLocationUpdate (Lcom/mapbox/geojson/Point;)V
27+
public final fun queueLocationUpdates (Ljava/util/List;)V
28+
public final fun restart ()V
29+
public final fun resume ()V
30+
public final fun start ()V
31+
}
32+
33+
public abstract interface class com/mapbox/maps/plugin/locationcomponent/JourneyDataObserver {
34+
public abstract fun onNewData (Lcom/mapbox/geojson/Point;DJJ)Z
35+
}
36+
1037
public abstract interface class com/mapbox/maps/plugin/locationcomponent/LocationCompassCalibrationListener {
1138
public abstract fun onCompassCalibrationNeeded ()V
1239
}
@@ -32,13 +59,56 @@ public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentCon
3259
public static final field TRANSITION_ANIMATION_DURATION_MS J
3360
}
3461

62+
public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions {
63+
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
64+
public fun equals (Ljava/lang/Object;)Z
65+
public final fun getBearingIconImageId ()Ljava/lang/String;
66+
public final fun getPuck2DLayerId ()Ljava/lang/String;
67+
public final fun getPuck3DLayerId ()Ljava/lang/String;
68+
public final fun getPuck3DSourceId ()Ljava/lang/String;
69+
public final fun getShadowIconImageId ()Ljava/lang/String;
70+
public final fun getTopIconImageId ()Ljava/lang/String;
71+
public fun hashCode ()I
72+
public fun toString ()Ljava/lang/String;
73+
}
74+
75+
public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder {
76+
public fun <init> ()V
77+
public final fun build ()Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;
78+
public final fun getBearingIconImageId ()Ljava/lang/String;
79+
public final fun getPuck2DLayerId ()Ljava/lang/String;
80+
public final fun getPuck3DLayerId ()Ljava/lang/String;
81+
public final fun getPuck3DSourceId ()Ljava/lang/String;
82+
public final fun getShadowIconImageId ()Ljava/lang/String;
83+
public final fun getTopIconImageId ()Ljava/lang/String;
84+
public final fun setBearingIconImageId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
85+
public final synthetic fun setBearingIconImageId (Ljava/lang/String;)V
86+
public final fun setPuck2DLayerId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
87+
public final synthetic fun setPuck2DLayerId (Ljava/lang/String;)V
88+
public final fun setPuck3DLayerId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
89+
public final synthetic fun setPuck3DLayerId (Ljava/lang/String;)V
90+
public final fun setPuck3DSourceId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
91+
public final synthetic fun setPuck3DSourceId (Ljava/lang/String;)V
92+
public final fun setShadowIconImageId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
93+
public final synthetic fun setShadowIconImageId (Ljava/lang/String;)V
94+
public final fun setTopIconImageId (Ljava/lang/String;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions$Builder;
95+
public final synthetic fun setTopIconImageId (Ljava/lang/String;)V
96+
}
97+
98+
public final class com/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptionsKt {
99+
public static final synthetic fun LocationComponentInitOptions (Lkotlin/jvm/functions/Function1;)Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;
100+
}
101+
35102
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 {
36103
public fun <init> ()V
104+
public fun <init> (Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;)V
105+
public synthetic fun <init> (Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
37106
public fun addOnIndicatorAccuracyRadiusChangedListener (Lcom/mapbox/maps/plugin/locationcomponent/OnIndicatorAccuracyRadiusChangedListener;)V
38107
public fun addOnIndicatorBearingChangedListener (Lcom/mapbox/maps/plugin/locationcomponent/OnIndicatorBearingChangedListener;)V
39108
public fun addOnIndicatorPositionChangedListener (Lcom/mapbox/maps/plugin/locationcomponent/OnIndicatorPositionChangedListener;)V
40109
public fun bind (Landroid/content/Context;Landroid/util/AttributeSet;F)V
41110
public fun cleanup ()V
111+
public final fun getLocationComponentInitOptions ()Lcom/mapbox/maps/plugin/locationcomponent/LocationComponentInitOptions;
42112
public fun getLocationProvider ()Lcom/mapbox/maps/plugin/locationcomponent/LocationProvider;
43113
public fun initialize ()V
44114
public fun isLocatedAt (Lcom/mapbox/geojson/Point;Lcom/mapbox/maps/plugin/locationcomponent/PuckLocatedAtPointListener;)V

0 commit comments

Comments
 (0)