mvl-huawei-geolocation
v0.0.3
Published
plugin for geolocation api on huawei
Downloads
4
Readme
mvl-huawei-geolocation
plugin for geolocation api on huawei
Install
npm install mvl-huawei-geolocation
npx cap sync
API
checkLocationPermission()
checkCameraPermission()
getCurrentLocation()
getDeviceInfo()
checkGooglePlayServices()
- Interfaces
checkLocationPermission()
checkLocationPermission() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
checkCameraPermission()
checkCameraPermission() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
getCurrentLocation()
getCurrentLocation() => Promise<Geolocation>
Returns: Promise<Geolocation>
getDeviceInfo()
getDeviceInfo() => Promise<DeviceInfo>
Returns: Promise<DeviceInfo>
checkGooglePlayServices()
checkGooglePlayServices() => Promise<GooglePlayServicesStatus>
Returns: Promise<GooglePlayServicesStatus>
Interfaces
PermissionStatus
| Prop | Type |
| ---------------- | ---------------------------------- |
| permission
| 'granted' | 'denied' |
Geolocation
| Prop | Type |
| --------------- | ------------------- |
| latitude
| number |
| longitude
| number |
DeviceInfo
| Prop | Type |
| --------------------------------- | -------------------- |
| brand
| string |
| device
| string |
| model
| string |
| product
| string |
| sdkVersion
| number |
| googlePlayServicesAvailable
| boolean |
GooglePlayServicesStatus
| Prop | Type |
| --------------------------------- | -------------------- |
| googlePlayServicesAvailable
| boolean |