| | |
| | | import com.okgoincar.netUtls.getUserId |
| | | import com.okgoincar.utils.Cache.CacheKey |
| | | import com.google.gson.Gson |
| | | import com.okgoincar.base.gpsnav.util.TTSController |
| | | import com.okgoincar.bean.CarLocationBean |
| | | import com.okgoincar.bean.OrderSimpleData |
| | | import com.okgoincar.bean.websocket.HeartBean |
| | |
| | | companion object { |
| | | private const val TAG = "MyApplication" |
| | | public var appContext: MyApplication? = null |
| | | protected var mTtsManager: TTSController? = null |
| | | |
| | | fun getInstance(): MyApplication? { |
| | | if (appContext == null) { |
| | |
| | | return appContext |
| | | } |
| | | |
| | | fun getTTsManager():TTSController{ |
| | | if (mTtsManager == null){ |
| | | mTtsManager = TTSController.getInstance(getInstance()) |
| | | mTtsManager?.init() |
| | | } |
| | | return mTtsManager!! |
| | | } |
| | | |
| | | fun getLocation(): AMapLocation { |
| | | if (aMapLocation == null) { |
| | | var locationStr = CacheKey.getKeyStr("location") |