public class TuSdkLocation
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
TuSdkLocation.TuSdkLocationDelegate
地理位置委托
|
构造器和说明 |
---|
TuSdkLocation(android.content.Context context)
地理位置
|
限定符和类型 | 方法和说明 |
---|---|
void |
cancelGPS()
取消GPS
|
static boolean |
canGps()
是否能够使用GPS
|
static android.location.Location |
getLastLocation()
获取最后一次地理位置
|
static void |
init(android.content.Context context)
初始化
|
void |
locationChangedCallback(android.location.Location location,
org.lasque.tusdk.core.utils.TuSdkLocation.TuSdkLocationListener listener)
地理位置改变
|
static void |
setDelegate(TuSdkLocation.TuSdkLocationDelegate delegate)
地理位置委托
|
public static void init(android.content.Context context)
context
- public static void setDelegate(TuSdkLocation.TuSdkLocationDelegate delegate)
delegate
- the delegate to setpublic static android.location.Location getLastLocation()
public static boolean canGps()
public void locationChangedCallback(android.location.Location location, org.lasque.tusdk.core.utils.TuSdkLocation.TuSdkLocationListener listener)
location
- listener
- public void cancelGPS()