Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Queries the current custom user agent string.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 2.9 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | "web" |
Returns current user agent text or error.
Query it on Windows:
MBS("Webview.GetCustomUserAgent"; "web")
Example result: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31
This function is free to use.
Created 18th August 2014, last changed 17th October 2021