Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #5004 - Deprecating Access Token in MapboxMapOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed May 15, 2016
1 parent eb19e98 commit 206b7ef
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
import android.support.v4.content.ContextCompat;
import android.util.AttributeSet;
import android.view.Gravity;

import com.mapbox.mapboxsdk.R;
import com.mapbox.mapboxsdk.camera.CameraPosition;
import com.mapbox.mapboxsdk.constants.MapboxConstants;
import com.mapbox.mapboxsdk.utils.ColorUtils;

import java.util.Arrays;

/**
Expand Down Expand Up @@ -217,11 +215,15 @@ public MapboxMapOptions camera(CameraPosition cameraPosition) {
}

/**
* <p>
* DEPRECATED @see MapboxAccountManager#start(String)
* </p>
* Specifies the accesstoken associated with a map view.
*
* @param accessToken Token to be used to access the service
* @return This
*/
@Deprecated
public MapboxMapOptions accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
Expand Down Expand Up @@ -595,10 +597,14 @@ public int[] getLogoMargins() {
}

/**
* <p>
* DEPRECATED @see MapboxAccountManager#start(String)
* </p>
* Get the current configured access token for a map view.
*
* @return Access token to be used.
*/
@Deprecated
public String getAccessToken() {
return accessToken;
}
Expand Down

0 comments on commit 206b7ef

Please sign in to comment.