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, OfficeOnline is returned if an add-is is running in Outlook on the web or in new Outlook on Windows.

PC

The platform is PC (Windows).

Universal

The platform is WinRT.