Skip to content

Commit 14cedda

Browse files
committed
[RIQ-6320] added back "getUserAgent" method, which was removed in a merge
1 parent 0ceba71 commit 14cedda

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/src/base.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ class FlutterWebviewPlugin {
224224
return res;
225225
}
226226

227+
///Get userAgent
228+
Future<String> getUserAgent() async {
229+
final String userAgent = await _channel.invokeMethod('getUserAgent');
230+
return userAgent;
231+
}
232+
227233
/// Close the Webview
228234
/// Will trigger the [onDestroy] event
229235
Future<void> close() async {

0 commit comments

Comments
 (0)