How to set user-agent for webview?

Does anyone know how to set a custom user-agent for webview component?
I’m trying to set a specific custom user-agent that only my website can read and display content accordingly.
All I could figure out was to put this
`

WebView myWebView = (WebView)findViewById(R.id.webview);
String userAgent = view.getSettings().getUserAgentString() ;
myWebView.getSettings().setUserAgentString(userAgent);

in the onCreate method of the java class for the activity that displays the WebView.
But I couldn’t figure out how to do it with Appgyver. Any help would be much appreciated.
`

Unfortunately I don’t think there’s any way of doing this before we have the ability to roll your own native plugins.

You could look at alternatives, like passing the information in query parameters (e.g. exchange some secret information for a one-time token with an API call, and provide that in query params), but this sounds like it quickly spirals into implementing your own auth schema.