AndroidChromeCustomTabsOptions class Null safety
This class represents all the Android-only ChromeSafariBrowser options available.
- Implemented types
Constructors
-
AndroidChromeCustomTabsOptions(bool showTitle = true, Color? toolbarBackgroundColor, bool enableUrlBarHiding = false, bool instantAppsEnabled = false, String? packageName, bool keepAliveEnabled = false, bool isSingleInstance = false, bool noHistory = false, bool isTrustedWebActivity = false, List<
String> additionalTrustedOrigins = const [], TrustedWebActivityDisplayMode? displayMode, TrustedWebActivityScreenOrientation screenOrientation = TrustedWebActivityScreenOrientation.DEFAULT})
Properties
-
Use shareState instead.
@Deprecated('Use `shareState` instead'), read / write
-
additionalTrustedOrigins
↔ List<
String> -
Sets a list of additional trusted origins that the user may navigate or be redirected to from the starting uri.
read / write
- displayMode ↔ TrustedWebActivityDisplayMode?
-
Sets a display mode of a Trusted Web Activity.
read / write
- enableUrlBarHiding ↔ bool
-
Set to
true
to enable the url bar to hide as the user scrolls down on the page. The default value isfalse
.read / write - hashCode → int
-
The hash code for this object.
read-only, inherited
- instantAppsEnabled ↔ bool
-
Set to
true
to enable Instant Apps. The default value isfalse
.read / write - isSingleInstance ↔ bool
-
Set to
true
to launch the Android activity insingleInstance
mode. The default value isfalse
.read / write - isTrustedWebActivity ↔ bool
-
Set to
true
to launch the Custom Tab as a Trusted Web Activity. The default value isfalse
.read / write - keepAliveEnabled ↔ bool
-
Set to
true
to enable Keep Alive. The default value isfalse
.read / write - noHistory ↔ bool
-
Set to
true
to launch the Android intent with the flagFLAG_ACTIVITY_NO_HISTORY
. The default value isfalse
.read / write - packageName ↔ String?
-
Set an explicit application package name that limits
the components this Intent will resolve to. If left to the default
value of null, all components in all applications will considered.
If non-null, the Intent can only match the components in the given
application package.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- screenOrientation ↔ TrustedWebActivityScreenOrientation
-
Sets a screen orientation. This can be used e.g. to enable the locking of an orientation lock type.
read / write
-
The share state that should be applied to the custom tab. The default value is CustomTabsShareState.SHARE_STATE_DEFAULT.
read / write
- showTitle ↔ bool
-
Set to
false
if the title shouldn't be shown in the custom tab. The default value istrue
.read / write - toolbarBackgroundColor ↔ Color?
-
Set the custom background color of the toolbar.
read / write
Methods
-
copy(
) → AndroidChromeCustomTabsOptions -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toMap(
) → Map< String, dynamic> -
override
-
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) → AndroidChromeCustomTabsOptions -
override