Android SDK Version
  • java.lang.Object
    • com.facebook.places.model.CurrentPlaceRequestParams

public class CurrentPlaceRequestParams
extends java.lang.Object
Describes the parameters of the current place request. Use PlaceManager to create a new current place request.
Nested Class Summary
Modifier and TypeClass and Description
static class CurrentPlaceRequestParams.Builder
Describes the builder to create a CurrentPlaceRequestParams
static class CurrentPlaceRequestParams.ConfidenceLevel
Describes the confidence level of the current place response.
static class CurrentPlaceRequestParams.ScanMode
Describes the location scanning behavior when creating a new current place request.
Method Summary
Modifier and TypeMethod and Description
java.util.Set<java.lang.String>getFields()
The fields to be returned in the response.
intgetLimit()
The maximum number of places to be returned.
LocationgetLocation()
The current location of the user.
CurrentPlaceRequestParams.ConfidenceLevelgetMinConfidenceLevel()
Get the minimum confidence level of places to return.
CurrentPlaceRequestParams.ScanModegetScanMode()
The scan mode used when generating the current place request.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getLocation

public Location getLocation()
The current location of the user. If null, the SDK automatically retrieves the current device location using android.location.LocationManager
Returns:
The current device location.

getScanMode

public CurrentPlaceRequestParams.ScanMode getScanMode()
The scan mode used when generating the current place request.
Returns:
The scan mode used when generating the current place request.

getMinConfidenceLevel

public CurrentPlaceRequestParams.ConfidenceLevel getMinConfidenceLevel()
Get the minimum confidence level of places to return.
Returns:
The minimum CurrentPlaceRequestParams.ConfidenceLevel of places to return.

getLimit

public int getLimit()
The maximum number of places to be returned.
Returns:
The maximum number of places to be returned.

getFields

public java.util.Set<java.lang.String> getFields()
The fields to be returned in the response.
Returns:
The fields to be returned in the response.