MS-600 · Question #122
You are developing a Microsoft Teams app that will display differently depending on the current Ul theme applied to Microsoft Teams. You need to retrieve the current theme by using the Microsoft…
The correct answer is A. microsoftTeams.getContext. The available placeholders include all fields on the context object. Common placeholders include {entityId}: The ID you supplied for the item in this tab when first configuring the tab. {theme}: The current user interface (UI) theme such as default, dark, or contrast…
Question
You are developing a Microsoft Teams app that will display differently depending on the current Ul theme applied to Microsoft Teams. You need to retrieve the current theme by using the Microsoft Teams JavaScript client SDK? Which function should you call?
Options
- AmicrosoftTeams.getContext
- BmicrosoftTeams.settings.getSettings
- CmicrosoftTeams.getMruTablnstances
- DmicrosoftTeams.initialize
How the community answered
(39 responses)- A74% (29)
- B8% (3)
- C13% (5)
- D5% (2)
Explanation
The available placeholders include all fields on the context object. Common placeholders include {entityId}: The ID you supplied for the item in this tab when first configuring the tab. {theme}: The current user interface (UI) theme such as default, dark, or contrast. https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/access-teams-context
Topics
Community Discussion
No community discussion yet for this question.