is: Platform Detection¶
Forge allows you to build cross-platform mobile apps and browser extensions from the same code. Sometimes it may be necessary to do a specific action based on the platform that is running the code. The following methods allow you to determine what platform that is.
API¶
orientation¶
Platforms: Mobile
connection¶
Platforms: Mobile
Note
These functions are not reliable during your app's initialisation: you should use connectionStateChange.addListener. We guarantee to fire that event as the app starts up.