ProcessDetector Class

Functions to determine the type of JavaScript process currently executing.

Methods

Name Description
constructor(): ProcessDetector    

Properties

Name Type Description
isAndroidAppBackend Accessor StaticReadOnly boolean Is this process the backend of an Android mobile application?  
isAndroidAppFrontend Accessor StaticReadOnly boolean Is this process the frontend of an Android mobile application?  
isAndroidBrowser Accessor StaticReadOnly boolean Is this process running in a browser on an Android device?  
isBrowserProcess Accessor StaticReadOnly boolean Is this a browser process?  
isChromium Accessor StaticReadOnly boolean Is this process running in a Chromium based browser (Chrome / new Edge / Electron front end)?  
isElectronAppBackend Accessor StaticReadOnly boolean Is this process the backend of an Electron app?  
isElectronAppFrontend Accessor StaticReadOnly boolean Is this process the frontend of an Electron app?  
isIOSAppBackend Accessor StaticReadOnly boolean Is this process the backend of an iOS mobile application?  
isIOSAppFrontend Accessor StaticReadOnly boolean Is this process the frontend of an iOS mobile application?  
isIOSBrowser Accessor StaticReadOnly boolean Is this process running in a browser on an iOS device?  
isIPadBrowser Accessor StaticReadOnly boolean Is this process running in a browser on an iPad?  
isIPhoneBrowser Accessor StaticReadOnly boolean Is this process running in a browser on an iPhone?  
isMobileAppBackend Accessor StaticReadOnly boolean Is this process a mobile app backend?  
isMobileAppFrontend Accessor StaticReadOnly boolean Is this process the frontend of an iTwin mobile application?  
isMobileBrowser Accessor StaticReadOnly boolean Is this process running in a browser on a mobile device?  
isNativeAppFrontend Accessor StaticReadOnly boolean Is this process the frontend of a native (Electron or Mobile) app?  
isNodeProcess Accessor StaticReadOnly boolean Is this a Node process?  

Defined in

Last Updated: 16 April, 2024