System Information
These properties and methods provide access to the runtime environment, SDK version, game version, launch parameters, and device system information.
TT.InContainerEnv
A Boolean property indicating whether the game is running inside the TikTok container environment.
Returns
Type | Description |
|
|
TT.s_ContainerEnv
Static Boolean field indicating whether the game is running inside the TikTok container environment. Equivalent to InContainerEnv but accessible as a static field.
Returns
Type | Description |
|
|
TT.TTSDKVersion
Returns the version string of the TikTok SDK currently in use.
Returns
Type | Description |
| SDK version string |
TT.GameVersion
Returns the version string of the mini game.
Returns
Type | Description |
| Game version string |
TT.GamePublishVersion
Returns the published version string of the mini game.
Returns
Type | Description |
| Published game version string |
TT.GetContainerVersion()
Returns the version string of the TikTok container application.
Returns
Type | Description |
| Container version string |
TT.GetLaunchOptionsSync()
Synchronously retrieves the launch options passed to the mini game when it was started.
Returns
Field | Type | Description |
|
| Launch scene |
|
| Query parameters |
|
| Referrer information |
TT.GetSystemInfo()
Retrieves device and system information including platform, language, screen dimensions, and SDK version.
Returns
Field | Type | Description |
|
| Client platform ( |
|
| Operating system and version |
|
| Device language |
|
| Client version |
|
| SDK version |
|
| Screen width in px |
|
| Screen height in px |
|
| Available window width in px |
|
| Available window height in px |
|
| Device pixel ratio |
|
| Status bar height |
TT.CanIUse
A static utility class that exposes Boolean properties for checking whether specific API capabilities are available in the current runtime. Check the relevant property before calling the corresponding API.
Properties
Property | Type | Description |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |
|
| Whether |