Browser class Null safety

View of the Browser.

Add what it does

Inheritance

Constructors

Browser({ChromeSafariBrowserSettings? settings, AnalyticService? analytics})
View of the Browser.

Properties

analytics → AnalyticService?
final
hashCode int
The hash code for this object.
read-onlyinherited
id String
View ID used internally.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings ChromeSafariBrowserSettings?
final

Methods

addMenuItem(ChromeSafariBrowserMenuItem menuItem) → void
Adds a ChromeSafariBrowserMenuItem to the menu.
inherited
addMenuItems(List<ChromeSafariBrowserMenuItem> menuItems) → void
Adds a list of ChromeSafariBrowserMenuItem to the menu.
inherited
close() Future<void>
Closes the ChromeSafariBrowser instance.
inherited
go({required String url, String eventName = 'BrowserView', ChromeSafariBrowserSettings? settings}) → void
isOpened() bool
Returns true if the ChromeSafariBrowser instance is opened, otherwise false.
inherited
launchUrl({required WebUri url, Map<String, String>? headers, List<WebUri>? otherLikelyURLs, WebUri? referrer}) Future<void>
Tells the browser to launch with url.
inherited
mayLaunchUrl({WebUri? url, List<WebUri>? otherLikelyURLs}) Future<bool>
Tells the browser of a likely future navigation to a URL. The most likely URL has to be specified first. Optionally, a list of other likely URLs can be provided. They are treated as less likely than the first one, and have to be sorted in decreasing priority order. These additional URLs may be ignored. All previous calls to this method will be deprioritized.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onClosed() → void
Event fired when the ChromeSafariBrowser is closed.
inherited
onCompletedInitialLoad(bool? didLoadSuccessfully) → void
Event fired when the initial URL load is complete.
inherited
onInitialLoadDidRedirect(WebUri? url) → void
Event fired when the initial URL load is complete.
inherited
onNavigationEvent(CustomTabsNavigationEventType? navigationEvent) → void
Event fired when a navigation event happens.
inherited
onOpened() → void
Event fired when the ChromeSafariBrowser is opened.
inherited
onRelationshipValidationResult(CustomTabsRelationType? relation, WebUri? requestedOrigin, bool result) → void
Event fired when a relationship validation result is available.
inherited
onServiceConnected() → void
Event fired when the when connecting from Android Custom Tabs Service.
inherited
onWillOpenInBrowser() → void
Event fired when the user opens the current page in the default browser by tapping the toolbar button.
inherited
open({WebUri? url, Map<String, String>? headers, List<WebUri>? otherLikelyURLs, WebUri? referrer, ChromeSafariBrowserClassOptions? options, ChromeSafariBrowserSettings? settings}) Future<void>
Opens the ChromeSafariBrowser instance with an url.
inherited
setActionButton(ChromeSafariBrowserActionButton actionButton) → void
Set a custom action button.
inherited
setSecondaryToolbar(ChromeSafariBrowserSecondaryToolbar secondaryToolbar) → void
Sets the remote views displayed in the secondary toolbar in a custom tab.
inherited
throwIsAlreadyOpened({String message = ''}) → void
inherited
throwIsNotOpened({String message = ''}) → void
inherited
toString() String
A string representation of this object.
inherited
updateActionButton({required Uint8List icon, required String description}) Future<void>
Updates the ChromeSafariBrowserActionButton.icon and ChromeSafariBrowserActionButton.description.
inherited
updateSecondaryToolbar(ChromeSafariBrowserSecondaryToolbar secondaryToolbar) Future<void>
Sets or updates (if already present) the Remote Views of the secondary toolbar in an existing custom tab session.
inherited
validateRelationship({required CustomTabsRelationType relation, required WebUri origin}) Future<bool>
Requests to validate a relationship between the application and an origin.
inherited

Operators

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

Static Properties

defaultSettings ChromeSafariBrowserSettings
read / write