Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

WebView.GetCustomUserAgent

Queries the current custom user agent string.

Component Version macOS Windows Linux Server iOS SDK
WebView 2.9 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "WebView.GetCustomUserAgent"; WebViewerRef )   More

Parameters

Parameter Description Example
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. "web"

Result

Returns current user agent text or error.

Description

Queries the current custom user agent string.
Use WebView.SetCustomUserAgent to set it.

Add iOS with version 9.3.

Implemented for Windows with Microsoft Edge/Chrome engine in MBS Plugin 11.5 when using FileMaker Pro 19.4 or newer.

Examples

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

See also

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 17th October 2021


WebView.GetAutoResizingMask - WebView.GetDrawsBackground

💬 Ask a question or report a problem