Stay organized with collections
Save and categorize content based on your preferences.
blockly > utils > userAgent
utils.userAgent namespace
Variables
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eutils.userAgent\u003c/code\u003e namespace provides variables to detect the user's browser and operating system.\u003c/p\u003e\n"],["\u003cp\u003eIt includes variables like \u003ccode\u003eANDROID\u003c/code\u003e, \u003ccode\u003eGECKO\u003c/code\u003e, \u003ccode\u003eIPAD\u003c/code\u003e, \u003ccode\u003eIPHONE\u003c/code\u003e, \u003ccode\u003eJavaFx\u003c/code\u003e, \u003ccode\u003eMAC\u003c/code\u003e, and \u003ccode\u003eMOBILE\u003c/code\u003e to identify specific platforms.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eraw\u003c/code\u003e variable contains the raw user agent string provided by the browser.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [utils](./blockly.utils_namespace.md) \\\u003e [userAgent](./blockly.utils_namespace.useragent_namespace.md)\n\nutils.userAgent namespace\n-------------------------\n\nVariables\n---------\n\n| Variable | Description |\n|------------------------------------------------------------------------------|-------------|\n| [ANDROID](./blockly.utils_namespace.useragent_namespace.android_variable.md) | |\n| [GECKO](./blockly.utils_namespace.useragent_namespace.gecko_variable.md) | |\n| [IPAD](./blockly.utils_namespace.useragent_namespace.ipad_variable.md) | |\n| [IPHONE](./blockly.utils_namespace.useragent_namespace.iphone_variable.md) | |\n| [JavaFx](./blockly.utils_namespace.useragent_namespace.javafx_variable.md) | |\n| [MAC](./blockly.utils_namespace.useragent_namespace.mac_variable.md) | |\n| [MOBILE](./blockly.utils_namespace.useragent_namespace.mobile_variable.md) | |\n| [raw](./blockly.utils_namespace.useragent_namespace.raw_variable.md) | |"]]