public class MraidGeoLocation
extends java.lang.Object
This class represents the geo-location values. It can be used to dispatch the last known location to the MRAID 3.0 creative.
| Modifier and Type | Field and Description |
|---|---|
float |
accuracy
Estimated location accuracy in meters!
|
long |
lastfix
Number of seconds since this geolocation fix was established.
|
double |
latitude
The latitude coordinate for the device
|
double |
longitude
The longitudinal coordinate of the device.
|
int |
type
source of location data; recommended when passing lat/lon
1: GPS/Location service
2: IP Address
3: User Provided (e.g.
|
| Constructor and Description |
|---|
MraidGeoLocation(android.location.Location location)
Constructs a new instance of geo-location object with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAccuracy() |
long |
getLastfix() |
double |
getLatitude() |
double |
getLongitude() |
double |
getType() |
public double latitude
public double longitude
public int type
public float accuracy
public long lastfix
public MraidGeoLocation(android.location.Location location)
location - The current location.public double getLatitude()
public double getLongitude()
public double getType()
public float getAccuracy()
public long getLastfix()