public class

Location

extends BaseEntity
java.lang.Object
   ↳ BaseEntity
     ↳ com.usebutton.sdk.context.Location

Class Overview

Entity representing a coordinate (lat/lng) or address and an optional set of provider specific identifiers. Can be used for example as parameter to setSubjectLocation(Location).

Summary

Constants
String KEY_LATITUDE
String KEY_LONGITUDE
Public Constructors
Location(double latitude, double longitude)
Location(String name, double latitude, double longitude)
Location(String streetAddress, String city, String state, String country)
Location(String name)
Location(Location location)
Public Methods
Location setAddress(String streetAddress)
Location setCity(String city)
Location setCountry(String country)
Location setLocation(double latitude, double longitude)
Location setName(String name)
Location setState(String state)
Protected Methods
String getType()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String KEY_LATITUDE

Constant Value: "latitude"

public static final String KEY_LONGITUDE

Constant Value: "longitude"

Public Constructors

public Location (double latitude, double longitude)

public Location (String name, double latitude, double longitude)

public Location (String streetAddress, String city, String state, String country)

public Location (String name)

public Location (Location location)

Public Methods

public Location setAddress (String streetAddress)

public Location setCity (String city)

public Location setCountry (String country)

public Location setLocation (double latitude, double longitude)

public Location setName (String name)

public Location setState (String state)

Protected Methods

protected String getType ()