[android] deprecated annotations package (#13468)

This commit is contained in:
Osana Babayan
2018-11-28 13:44:44 -05:00
committed by GitHub
parent ad03e42b28
commit dfeadc05e4
16 changed files with 57 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package com.mapbox.mapboxsdk.annotations;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.mapbox.mapboxsdk.maps.MapView;
import com.mapbox.mapboxsdk.maps.MapboxMap;
@@ -15,7 +16,11 @@ import com.mapbox.mapboxsdk.maps.MapboxMap;
* This class manages attachment to a map and identification, but does not require
* content to be placed at a geographical point.
* </p>
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public abstract class Annotation implements Comparable<Annotation> {
/**

View File

@@ -5,6 +5,7 @@ import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Deprecated
class ArrowDirection {
@IntDef( {LEFT, RIGHT, TOP, BOTTOM})
@Retention(RetentionPolicy.SOURCE)

View File

@@ -11,7 +11,11 @@ import com.mapbox.mapboxsdk.geometry.LatLng;
*
* @param <U> Type of the marker to be composed
* @param <T> Type of the builder to be used for composing a custom Marker
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public abstract class BaseMarkerOptions<U extends Marker, T extends BaseMarkerOptions<U, T>> implements Parcelable {
protected LatLng position;

View File

@@ -10,7 +10,12 @@ import java.util.List;
/**
* Multipoint is an abstract annotation for combining geographical locations.
*
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public abstract class BasePointCollection extends Annotation {
@Keep

View File

@@ -10,6 +10,7 @@ import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
@Deprecated
class Bubble extends Drawable {
private RectF rect;

View File

@@ -14,7 +14,11 @@ import com.mapbox.mapboxsdk.R;
/**
* Bubble View for Android with custom stroke width and color, arrow size, position and direction.
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public class BubbleLayout extends LinearLayout {
public static final float DEFAULT_STROKE_WIDTH = -1;

View File

@@ -9,6 +9,7 @@ import android.widget.PopupWindow;
import com.mapbox.mapboxsdk.R;
@Deprecated
class BubblePopupHelper {
@NonNull

View File

@@ -10,9 +10,11 @@ import java.nio.ByteBuffer;
/**
* Icon is the visual representation of a Marker on a MapView.
*
* @see Marker
* @see IconFactory
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public class Icon {
private Bitmap mBitmap;

View File

@@ -28,8 +28,11 @@ import java.io.InputStream;
* icon is used to display bitmaps on top of the map using {@link Marker}.
* </p>
*
* @see Icon
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public final class IconFactory {
private static final String ICON_ID_PREFIX = "com.mapbox.icons.icon_";

View File

@@ -31,7 +31,11 @@ import java.lang.ref.WeakReference;
* While either the title and
* snippet are optional, at least one is required to open the info window.
* </p>
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public class InfoWindow {
private WeakReference<Marker> boundMarker;

View File

@@ -21,7 +21,11 @@ import com.mapbox.mapboxsdk.maps.MapboxMap;
* with event listeners to bring up info windows. An {@link InfoWindow} is displayed by default when
* either a title or snippet is provided.
* </p>
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public class Marker extends Annotation {
@Keep

View File

@@ -20,7 +20,11 @@ import com.mapbox.mapboxsdk.geometry.LatLng;
* .snippet("H St NW with 15th St NW")
* .position(new LatLng(38.9002073, -77.03364419)));
* </pre>
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public final class MarkerOptions extends BaseMarkerOptions<Marker, MarkerOptions> implements Parcelable {
/**

View File

@@ -12,7 +12,11 @@ import java.util.List;
/**
* Polygon is a geometry annotation that's a closed loop of coordinates.
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public final class Polygon extends BasePointCollection {
@Keep

View File

@@ -13,7 +13,11 @@ import java.util.List;
/**
* Builder for composing {@link Polygon} objects.
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public final class PolygonOptions implements Parcelable {
public static final Parcelable.Creator<PolygonOptions> CREATOR =

View File

@@ -7,7 +7,11 @@ import com.mapbox.mapboxsdk.maps.MapboxMap;
/**
* Polyline is a geometry feature with an unclosed list of coordinates drawn as a line
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public final class Polyline extends BasePointCollection {
@Keep

View File

@@ -12,7 +12,11 @@ import java.util.List;
/**
* Builder for composing {@link Polyline} objects.
* @deprecated As of 7.0.0,
* use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
* Mapbox Annotation Plugin</a> instead
*/
@Deprecated
public final class PolylineOptions implements Parcelable {