Office.PlatformType enum
Specifies the OS or other platform on which the Office application is running.
Remarks
Important: In Outlook, this enum is available from Mailbox requirement set 1.5.
Examples
const contextInfo = Office.context.diagnostics;
const platformType: Office.PlatformType = contextInfo.platform;
console.log("Platform: " + platformType);
Fields
Android | The platform is an Android device. |
iOS | The platform is an iOS device. |
Mac | The platform is Mac. |
OfficeOnline | The platform is Office on the web (in a browser). Important: In Outlook, |
PC | The platform is PC (Windows). |
Universal | The platform is WinRT. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins