nerdexam
Microsoft

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…

Extend Teams

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)
  • A
    74% (29)
  • B
    8% (3)
  • C
    13% (5)
  • D
    5% (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

#Teams JavaScript SDK#UI theme#getContext#client SDK

Community Discussion

No community discussion yet for this question.

Full MS-600 Practice