T

NativePlatformDevice

Facts about the device Discord runs on.

type NativePlatformDevice = { … }

Members

getDeviceModel(): string

The device's model name.

getJailbreak?(): string

The active iOS jailbreak's name, such as Dopamine 2.4, or an empty string on Android and when none is found; older loaders lack it.

The operating system's version.

isRooted(): boolean

Whether the device is jailbroken on iOS or has an su binary on Android.

isSystemApp(): boolean

Whether Discord is installed as a system app.

isVirtualDevice(): boolean

Whether Discord runs in a simulator, emulator or virtual machine.