TBLWebviewUtils class

Constructors

TBLWebviewUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

random Random
final
TIME_TO_USE_AS_FACTOR_IN_VIEW_ID_CREATION int
getter/setter pair

Static Methods

buildWebviewUrl(dynamic viewId, dynamic _publisherId, dynamic _mode, dynamic _pageType, dynamic _targetType, dynamic _pageId, dynamic _placement, dynamic _pageUrl) String
Builds the URL for the webview
ccTabConfig({CustomTabsColorSchemes? toolbarColor}) → CustomTabsOptions
Configures the custom tabs for Android
configAndroidWebviewController(WebViewController webViewController) → dynamic
Configures the webview controller for Android
createPlatformWebViewControllerCreationParams() → PlatformWebViewControllerCreationParams
Creates the parameters for the webview controller
createPlatformWebViewWidgetCreationParams(WebViewController webViewController, Set<Factory<TBLWebViewGestureRecognizer>> savedFactoryRecognizers) → PlatformWebViewWidgetCreationParams
Creates the parameters for the webview widget
createSaveGestureRecognizers(TBLWebViewGestureRecognizer tblWebViewGestureRecognizer) Set<Factory<TBLWebViewGestureRecognizer>>
Creates a set of gesture recognizers for the webview
generateViewId() int
Generates a unique view ID based on the current time with an added random factor.
removeWebview(WebViewController webViewController, TBLWebViewManager webViewManager) → dynamic
Previously, the webview was not cleared, resulting in an issue where an alert popup would appear on Android devices after switching to tabs. After clearing the webview in the dispose() function, this problem was resolved. For more details, refer to the following link: https://github.com/flutter/flutter/issues/119616
safariViewControllerConfig({Color? primaryColor, Color? preferredControlTintColor}) → SafariViewControllerOptions
Configures custom tabs Safari view controller for iOS