ISDKs interface

Conditional set of SDKs provided by SPFx dependent on the environment.

Properties

microsoftTeams

Contextual information about the current Microsoft Teams tab. This object will only be defined if a component is being hosted in Microsoft Teams.

office

Contextual information about the current Office app. This object will only be defined if a component is being hosted in an Office app.

Property Details

microsoftTeams

Contextual information about the current Microsoft Teams tab. This object will only be defined if a component is being hosted in Microsoft Teams.

microsoftTeams?: IMicrosoftTeams;

Property Value

Remarks

For more information, please see: https://docs.microsoft.com/en-us/javascript/api/@microsoft/teams-js/?view=msteams-client-js-latest

office

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Contextual information about the current Office app. This object will only be defined if a component is being hosted in an Office app.

office?: IOffice;

Property Value

Remarks

For more information, please see: https://docs.microsoft.com/en-us/office/dev/add-ins/develop/understanding-the-javascript-api-for-office