location module
Interfaces
| Location | |
| LocationProps |
Functions
| get |
Fetches current user coordinates or allows user to choose location on map |
| show |
Shows the location on map corresponding to the given coordinates |
Function Details
getLocation(LocationProps, (error: SdkError, location: Location) => void)
Fetches current user coordinates or allows user to choose location on map
function getLocation(props: LocationProps, callback: (error: SdkError, location: Location) => void)
Parameters
- props
- LocationProps
- callback
-
(error: SdkError, location: Location) => void
Callback to invoke when current user location is fetched
showLocation(Location, (error: SdkError, status: boolean) => void)
Shows the location on map corresponding to the given coordinates
function showLocation(location: Location, callback: (error: SdkError, status: boolean) => void)
Parameters
- location
- Location
which needs to be shown on map
- callback
-
(error: SdkError, status: boolean) => void
Callback to invoke when the location is opened on map
Comentários
Enviar e exibir comentários de