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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de