SetLocation static method
设置时区 设置讲话携带组名 上传额外信息 设置定位
Implementation
/*
static void SetTimeZone(int zone) async {
Log.i(tag, "SetTimeZone:"+zone.toString());
PlatformMethodInvokeHandler.invokeMethod("SetTimeZone",zone);
}
*/
///设置讲话携带组名
/*
static void SetSpkAddGroupName() async {
Log.i(tag, "SetSpkAddGroupName");
PlatformMethodInvokeHandler.invokeMethod("SetSpkAddGroupName");
}
*/
///上传额外信息
// * @param code 类型
// * @param info 信息
/*
static void UserUploadMsg(int code, String info) async {
Log.i(tag, "UserUploadMsg:"+code.toString()+",info:"+info);
PlatformMethodInvokeHandler.invokeMethod("UserUploadMsg",[code, info]);
}
*/
///设置定位
//"lat:" + iLastLat + ";" + "lng:" + iLastLng + ";"
// + "direction:" + iBearing + ";" + "speed:" + iSpeed + ";"
// + "elevation:" + iAltitude + ";";
// 当前高度Altitude
// 当前方向Bearing
// 当前纬度Latitude
// 当前经度Longitude
// 当前精度Accuracy
// 当前速度Speed
static Future<void> SetLocation(String location) async {
if (pocChangeNotifier.isOnline) {
Log.i(tag, "SetLocation:$location");
PlatformMethodInvokeHandler.invokeMethod("SetLocation", location);
}
}