• 大小: 25.61MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-07
  • 语言: Java
  • 标签: Unity  定位  

资源简介

Unity接入高德地图,提供unitydemo项目与java端的代码,可供参考学习

资源截图

代码片段和文件信息

package com.BackflowLake.AMapLocationhelper;

import com.amap.api.location.AMapLocationClientOption;
import com.amap.api.location.AMapLocationClientOption.AMapLocationMode;

public class AMapLocationModeHelper {

public void hightAccuracy(AMapLocationClientOption mLocationOption){  
mLocationOption.setLocationMode(AMapLocationMode.Hight_Accuracy);  
    }  
      
    public void batterySaving(AMapLocationClientOption mLocationOption){  
     mLocationOption.setLocationMode(AMapLocationMode.Battery_Saving);  
    }  
      
    public void deviceSensors(AMapLocationClientOption mLocationOption){  
     mLocationOption.setLocationMode(AMapLocationMode.Device_Sensors);  
    } 
    
    public void onceLocation(AMapLocationClientOption mLocationOption){
     mLocationOption.setOnceLocation(true);
    }
    
    public void onceLocationLatest(AMapLocationClientOption mLocationOption){
     mLocationOption.setOnceLocationLatest(true);
    }
    
    public void interval(AMapLocationClientOption mLocationOptionint time){
     mLocationOption.setInterval(time);
    }
    
    public void wifiActiveScan(AMapLocationClientOption mLocationOption){
     mLocationOption.setWifiActiveScan(false);
    }
    
    public void mockEnable(AMapLocationClientOption mLocationOption){
     mLocationOption.setMockEnable(false);
    }
    
    public void needAddress(AMapLocationClientOption mLocationOption){
     mLocationOption.setNeedAddress(false);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-10-26 03:44  AMapHelper-master\
     文件         621  2016-10-26 03:44  AMapHelper-master\README.md
     目录           0  2016-10-26 03:44  AMapHelper-master\java\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\build\
     文件        1832  2016-10-26 03:44  AMapHelper-master\java\build\AMapLocationhelper.jar
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\
     文件         373  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\.classpath
     文件         377  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\.project
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\.settings\
     文件         587  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\.settings\org.eclipse.jdt.core.prefs
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\bin\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\bin\com\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\bin\com\BackflowLake\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\bin\com\BackflowLake\AMapLocationhelper\
     文件        2148  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\bin\com\BackflowLake\AMapLocationhelper\AMapLocationModeHelper.class
     文件          16  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\readme.txt
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\src\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\src\com\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\src\com\BackflowLake\
     目录           0  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\src\com\BackflowLake\AMapLocationhelper\
     文件        1467  2016-10-26 03:44  AMapHelper-master\java\src\AMapLocationhelper\src\com\BackflowLake\AMapLocationhelper\AMapLocationModeHelper.java
     文件      278960  2016-10-26 03:44  AMapHelper-master\java\src\AMap_Location_V3.00_20160922.jar
     目录           0  2016-10-26 03:44  AMapHelper-master\unity\
     目录           0  2016-10-26 03:44  AMapHelper-master\unity\build\
     文件    21050917  2016-10-26 03:44  AMapHelper-master\unity\build\AMapHelper.apk
     文件     1641784  2016-10-26 03:44  AMapHelper-master\unity\build\AMapHelper.unitypackage
     目录           0  2016-10-26 03:44  AMapHelper-master\unity\src\
     目录           0  2016-10-26 03:44  AMapHelper-master\unity\src\AMapHelper\
     文件        1000  2016-10-26 03:44  AMapHelper-master\unity\src\AMapHelper\AMapHelper.sln
     文件         389  2016-10-26 03:44  AMapHelper-master\unity\src\AMapHelper\AMapHelper.userprefs
............此处省略660个文件信息

评论

共有 条评论