Skip to content

Commit

Permalink
[RIQ-6320] added back "getUserAgent" method, which was removed in a m…
Browse files Browse the repository at this point in the history
…erge
  • Loading branch information
greg-aofl committed Feb 4, 2022
1 parent 0ceba71 commit 14cedda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ class FlutterWebviewPlugin {
return res;
}

///Get userAgent
Future<String> getUserAgent() async {
final String userAgent = await _channel.invokeMethod('getUserAgent');
return userAgent;
}

/// Close the Webview
/// Will trigger the [onDestroy] event
Future<void> close() async {
Expand Down

0 comments on commit 14cedda

Please sign in to comment.