AppInfo interface

Represents application information.

Properties

appId

This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.

appLaunchId

ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.

host

Info of the host

iconPositionVertical

Personal app icon y coordinate position

locale

The current locale that the user has configured for the app formatted as languageId-countryId (for example, en-us).

manifestVersion

The version of the manifest that the app is running.

osLocaleInfo

More detailed locale info from the user's OS if available. Can be used together with the @microsoft/globe NPM package to ensure your app respects the user's OS date and time format configuration

parentMessageId

The ID of the parent message from which this task module was launched. This is only available in task modules launched from bot cards.

sessionId

Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.

theme

The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".

userClickTime

Time when the user clicked on the tab using the date.

For measuring elapsed time between the moment the user click the tab, use app.Context.app.userClickTimeV2 instead as it uses the performance timer API.

userClickTimeV2

Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.

For displaying the time when the user clicked on the app, please use app.Context.app.userClickTime as it uses the date.

userFileOpenPreference

Where the user prefers the file to be opened from by default during file open

Property Details

appId

This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.

TypeScript
appId?: AppId

Property Value

appLaunchId

ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.

TypeScript
appLaunchId?: string

Property Value

string

host

Info of the host

TypeScript
host: AppHostInfo

Property Value

iconPositionVertical

Personal app icon y coordinate position

TypeScript
iconPositionVertical?: number

Property Value

number

locale

The current locale that the user has configured for the app formatted as languageId-countryId (for example, en-us).

TypeScript
locale: string

Property Value

string

manifestVersion

The version of the manifest that the app is running.

TypeScript
manifestVersion?: string

Property Value

string

osLocaleInfo

More detailed locale info from the user's OS if available. Can be used together with the @microsoft/globe NPM package to ensure your app respects the user's OS date and time format configuration

TypeScript
osLocaleInfo?: LocaleInfo

Property Value

parentMessageId

The ID of the parent message from which this task module was launched. This is only available in task modules launched from bot cards.

TypeScript
parentMessageId?: string

Property Value

string

sessionId

Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.

TypeScript
sessionId: string

Property Value

string

theme

The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".

TypeScript
theme: string

Property Value

string

userClickTime

Time when the user clicked on the tab using the date.

For measuring elapsed time between the moment the user click the tab, use app.Context.app.userClickTimeV2 instead as it uses the performance timer API.

TypeScript
userClickTime?: number

Property Value

number

userClickTimeV2

Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.

For displaying the time when the user clicked on the app, please use app.Context.app.userClickTime as it uses the date.

TypeScript
userClickTimeV2?: number

Property Value

number

userFileOpenPreference

Where the user prefers the file to be opened from by default during file open

TypeScript
userFileOpenPreference?: FileOpenPreference

Property Value