Skip to main content

DeviceInfo

ClassTypeNameInterface Description
DeviceInfoStatic FunctionsgetOS():OS

Get the operating system type of the current device

getCameraFacingType(): number

Get the camera orientation of the current device

OSEnumAndroid,

Operating System Type

iOS,
Windows,
MacOS,
Linux,
HarmonyOS

Examples

getOS():OS

const os = APJS.DeviceInfo.getOS();

getCameraFacingType(): number

const cameraFacing = APJS.DeviceInfo.getCameraFacingType();
Copyright © 2025 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalCookies