ChromeSafariBrowserSecondaryToolbar class

Class that represents the RemoteViews that will be shown on the secondary toolbar of a custom tab.

This class describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from an Android layout resource file.

RemoteViews has limited to support to Android layouts. Check the RemoteViews Official API for more details.

NOTE for Android native WebView: Not available in an Android Trusted Web Activity.

Officially Supported Platforms/Implementations:

  • Android native WebView

Constructors

ChromeSafariBrowserSecondaryToolbar({List<ChromeSafariBrowserSecondaryToolbarClickableID> clickableIDs = const [], required AndroidResource layout})
NOTE for Android native WebView: Not available in an Android Trusted Web Activity.

Properties

clickableIDs List<ChromeSafariBrowserSecondaryToolbarClickableID>
The IDs of clickable views. The onClick event of these views will be handled by custom tabs.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
layout AndroidResource
The android layout resource.
getter/setter pair
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
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) ChromeSafariBrowserSecondaryToolbar?
Gets a possible ChromeSafariBrowserSecondaryToolbar instance from a Map value.