UNPKG

react-native-android-background-geolocation

Version:

A react-native geolocation module for Android, which can run in the foreground and background even the app is terminated.

28 lines (22 loc) 802 B
Object.defineProperty(exports,"__esModule",{value:true});exports.ErrorCodeEnum=exports.PriorityModeEnum=undefined; var _locationServiceImpl=require('./locationServiceImpl'); var _enum=require('./enum'); var LocationService={ start:function start(option){ _locationServiceImpl.Impl.start(option); }, stop:function stop(){ _locationServiceImpl.Impl.stop(); }, onLocationChanged:function onLocationChanged(listener){ return _locationServiceImpl.Impl.onLocationChanged(listener); }, onError:function onError(listener){ return _locationServiceImpl.Impl.onError(listener); }, removeAllListeners:function removeAllListeners(){ _locationServiceImpl.Impl.removeAllListeners(); }};exports.default= LocationService;exports. PriorityModeEnum=_enum.PriorityModeEnum;exports. ErrorCodeEnum=_enum.ErrorCodeEnum;