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
-
@microsoft/teams-js.@microsoft.teams-js.location.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
-
@microsoft/teams-js.@microsoft.teams-js.location.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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour