public class TKLocationManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TKLocationManager.AndroidLocationListener |
class |
TKLocationManager.TigerknowsLocationListener |
static class |
TKLocationManager.TKLocation |
class |
TKLocationManager.TKLocationOption |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GPS_COLLECTION_PROVIDER |
static boolean |
UnallowedLocation |
Modifier and Type | Method and Description |
---|---|
static void |
distanceBetween(double startLatitude,
double startLongitude,
double endLatitude,
double endLongitude,
float[] results) |
com.tigerknows.common.LocationUpload |
getGPSLocationUpload() |
static TKLocationManager |
getInstance(Context context) |
TKLocationManager.TKLocationOption |
getLocationOption() |
com.tigerknows.common.LocationUpload |
getNetworkLocationUpload() |
void |
onCreate() |
void |
onCreate(boolean gps,
boolean network,
boolean tigerknows) |
void |
onDestroy() |
void |
onDestroy(boolean gps,
boolean network,
boolean tigerknows) |
void |
onPause(TKLocationListener listener) |
void |
onPause(TKLocationListener listener,
boolean gps,
boolean network,
boolean tigerknows) |
void |
onResume(TKLocationListener listener) |
void |
onResume(TKLocationListener listener,
boolean gps,
boolean network,
boolean tigerknows) |
void |
setLocationOption(TKLocationManager.TKLocationOption option)
若RequestMinDistance或RequestMinTime发生改变,且当前GPS或Network已经处于运行状态
则GPS和Network定位会自动重启并切换到新的配置
|
public static final java.lang.String GPS_COLLECTION_PROVIDER
public static boolean UnallowedLocation
public static TKLocationManager getInstance(Context context)
public com.tigerknows.common.LocationUpload getGPSLocationUpload()
public com.tigerknows.common.LocationUpload getNetworkLocationUpload()
public void setLocationOption(TKLocationManager.TKLocationOption option)
option
- public TKLocationManager.TKLocationOption getLocationOption()
public void onCreate()
public void onCreate(boolean gps, boolean network, boolean tigerknows)
public void onResume(TKLocationListener listener)
public void onResume(TKLocationListener listener, boolean gps, boolean network, boolean tigerknows)
public void onPause(TKLocationListener listener)
public void onPause(TKLocationListener listener, boolean gps, boolean network, boolean tigerknows)
public void onDestroy()
public void onDestroy(boolean gps, boolean network, boolean tigerknows)
public static void distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] results)