public class PMLocationDetector
extends java.lang.Object
implements android.location.LocationListener
| Constructor and Description |
|---|
PMLocationDetector(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
android.location.Location |
getLocation()
Method is used to get location on the basic of LocationProvider(GPS, Network)
|
void |
onLocationChanged(android.location.Location location) |
void |
onProviderDisabled(java.lang.String provider) |
void |
onProviderEnabled(java.lang.String provider) |
void |
onStatusChanged(java.lang.String provider,
int status,
android.os.Bundle extras) |
void |
setLocationUpdateIntervalInMs(long locationUpdateIntervalInMs)
Method to set update time interval
|
public void setLocationUpdateIntervalInMs(long locationUpdateIntervalInMs)
locationUpdateIntervalInMs - time interval to get locationpublic android.location.Location getLocation()
public void onLocationChanged(android.location.Location location)
onLocationChanged in interface android.location.LocationListenerpublic void onStatusChanged(java.lang.String provider,
int status,
android.os.Bundle extras)
onStatusChanged in interface android.location.LocationListenerpublic void onProviderEnabled(java.lang.String provider)
onProviderEnabled in interface android.location.LocationListenerpublic void onProviderDisabled(java.lang.String provider)
onProviderDisabled in interface android.location.LocationListener