Package com.unitech.api.location
Class LocationCtrl
java.lang.Object
com.unitech.api.location.LocationCtrl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundleRequest Location Updateandroid.os.BundleGet Accuracyandroid.os.BundleGet AllDataandroid.os.BundleGet Altitudeandroid.os.Bundleandroid.os.BundleGet Latitudeandroid.os.BundleGet Longitudeandroid.os.BundleGet Providerandroid.os.BundlegetSpeed()Get Speedandroid.os.BundleGet UTCTime(pattern:"yyyy-MM-dd'T'HH:mm:ssZ")android.os.BundlesetLocationMode(int mode) Set Location Mode
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
-
Constructor Details
-
LocationCtrl
public LocationCtrl(android.content.Context context)
-
-
Method Details
-
setLocationMode
public android.os.Bundle setLocationMode(int mode) Set Location Mode- Parameters:
mode- (int) 0:"off", 1:"device only", 2:"battery saving", 3:"high accuracy",- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getGpsOpenStatus
public android.os.Bundle getGpsOpenStatus()- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getGpsOpenStatus=bundle.getString("getGpsOpenStatus");
-
getAltitude
public android.os.Bundle getAltitude()Get Altitude- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getAltitude=bundle.getString("getAltitude");
-
getAccuracy
public android.os.Bundle getAccuracy()Get Accuracy- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getAccuracy=bundle.getString("getAccuracy");
-
getLatitude
public android.os.Bundle getLatitude()Get Latitude- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getLatitude=bundle.getString("getLatitude");
-
getLongitude
public android.os.Bundle getLongitude()Get Longitude- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getLongitude=bundle.getString("getLongitude");
-
getProvider
public android.os.Bundle getProvider()Get Provider- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getProvider=bundle.getString("getProvider");
-
getSpeed
public android.os.Bundle getSpeed()Get Speed- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getSpeed=bundle.getString("getSpeed");
-
getUTCTime
public android.os.Bundle getUTCTime()Get UTCTime(pattern:"yyyy-MM-dd'T'HH:mm:ssZ")- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getUTCTime=bundle.getString("getUTCTime");
-
addGpsStatusListener
public android.os.Bundle addGpsStatusListener()Request Location Update- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getAllData
public android.os.Bundle getAllData()Get AllData- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
String getAltitude=bundle.getString("getAltitude");
String getAccuracy=bundle.getString("getAccuracy");
String getLatitude=bundle.getString("getLatitude");
String getLongitude=bundle.getString("getLongitude");
String getProvider=bundle.getString("getProvider");
String getSpeed=bundle.getString("getSpeed");
String getUTCTime=bundle.getString("getUTCTime");
-