@Deprecated
public class PlaceManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PlaceManager.LocationError
Deprecated.
Describes an error that occurred while retrieving the current location.
|
static interface |
PlaceManager.OnRequestReadyCallback
Deprecated.
Callback invoked when a request has been constructed and is ready to be executed.
|
| Modifier and Type | Method and Description |
|---|---|
static com.facebook.GraphRequest |
newCurrentPlaceFeedbackRequest(CurrentPlaceFeedbackRequestParams requestParams)
Deprecated.
Creates a new current place feedback request.
|
static void |
newCurrentPlaceRequest(CurrentPlaceRequestParams requestParams,
PlaceManager.OnRequestReadyCallback callback)
Deprecated.
Creates a new current place request.
|
static com.facebook.GraphRequest |
newPlaceInfoRequest(PlaceInfoRequestParams requestParams)
Deprecated.
Creates a new place info request.
|
static void |
newPlaceSearchRequest(PlaceSearchRequestParams requestParams,
PlaceManager.OnRequestReadyCallback callback)
Deprecated.
Creates a new place search request centered around the current device location.
|
static com.facebook.GraphRequest |
newPlaceSearchRequestForLocation(PlaceSearchRequestParams requestParams,
android.location.Location location)
Deprecated.
Creates a new place search request centered around the specified location.
|
public static void newPlaceSearchRequest(PlaceSearchRequestParams requestParams, PlaceManager.OnRequestReadyCallback callback)
LocationManager
With the Places Graph, you can search for millions of places worldwide and retrieve information like number of checkins, ratings, and addresses all with one request.
The specified PlaceManager.OnRequestReadyCallback will be invoked once the request has been
generated and is ready to be executed.
requestParams - the request parameters. See PlaceSearchRequestParamscallback - the PlaceManager.OnRequestReadyCallback invoked when the GraphRequest has
been generated and is ready to be executedpublic static com.facebook.GraphRequest newPlaceSearchRequestForLocation(PlaceSearchRequestParams requestParams, android.location.Location location)
With the Places Graph, you can search for millions of places worldwide and retrieve information like number of checkins, ratings, and addresses all with one request.
Returns a new GraphRequest that is configured to perform a place search.
requestParams - the request parameters. See PlaceSearchRequestParamslocation - the Location around which to searchGraphRequest that is ready to be executedcom.facebook.FacebookException - thrown if neither location nor searchText is
specifiedpublic static com.facebook.GraphRequest newPlaceInfoRequest(PlaceInfoRequestParams requestParams)
The Places Graph exposes a rich set of information about places. If the request is authenticated with a user access token, you can also obtain social information such as the number of friends who have liked and checked into the PlaceFields. The specific friends are also available if they have authenticated the app with the user_tagged_places and user_likes permissions.
Returns a new GraphRequest that is configured to perform a place info request.
requestParams - the request parameters, a PlaceInfoRequestParams.getPlaceId() must
be specified.GraphRequest that is ready to be executedcom.facebook.FacebookException - thrown if a PlaceInfoRequestParams.getPlaceId() is not
specified.public static void newCurrentPlaceRequest(CurrentPlaceRequestParams requestParams, PlaceManager.OnRequestReadyCallback callback)
The current place request estimates the place where the user is currently located. The response contains a list of places and their associated confidence levels.
If a location is not specified in CurrentPlaceRequestParams, then the SDK retrieves
the current location using LocationManager.
requestParams - the request parameters. See CurrentPlaceRequestParamscallback - a PlaceManager.OnRequestReadyCallback that is invoked when the GraphRequest
has been created and is ready to be executed.public static com.facebook.GraphRequest newCurrentPlaceFeedbackRequest(CurrentPlaceFeedbackRequestParams requestParams)
This request allows users to provide feedback on the accuracy of the current place estimate. This information is used to improve the accuracy of our results.
Returns a new GraphRequest that is configured to perform a current place feedback request.
requestParams - the request parameters. See CurrentPlaceFeedbackRequestParamsGraphRequest that is ready to be executedcom.facebook.FacebookException - thrown if parameters CurrentPlaceFeedbackRequestParams.getPlaceId(), CurrentPlaceFeedbackRequestParams.getTracking(), or CurrentPlaceFeedbackRequestParams.wasHere() are missing