SafariViewControllerOptions class

The comprehensive set of options for launching SFSafariViewController by specifying a URL.

See also:

Annotations

Constructors

SafariViewControllerOptions({Color? preferredBarTintColor, Color? preferredControlTintColor, bool? barCollapsingEnabled, bool? entersReaderIfAvailable, SafariViewControllerDismissButtonStyle? dismissButtonStyle, ViewControllerModalPresentationStyle? modalPresentationStyle, SheetPresentationControllerConfiguration? pageSheet})
Creates a SafariViewControllerOptions instance with the specified options.
const
SafariViewControllerOptions.pageSheet({required SheetPresentationControllerConfiguration configuration, Color? preferredBarTintColor, Color? preferredControlTintColor, bool? entersReaderIfAvailable, SafariViewControllerDismissButtonStyle? dismissButtonStyle})
Creates a SafariViewControllerOptions instance with page sheet configuration.
const

Properties

barCollapsingEnabled bool?
A Boolean value that enables the url bar to hide as the user scrolls down the page.
final
dismissButtonStyle SafariViewControllerDismissButtonStyle?
Dismiss button style on the navigation bar.
final
entersReaderIfAvailable bool?
A Boolean value that specifies whether Safari should enter Reader mode, if it is available.
final
hashCode int
The hash code for this object.
no setterinherited
modalPresentationStyle ViewControllerModalPresentationStyle?
The presentation style for modal view controllers.
final
pageSheet SheetPresentationControllerConfiguration?
The page sheet configuration.
final
preferredBarTintColor Color?
The color to tint the background of the navigation bar and the toolbar.
final
preferredControlTintColor Color?
The color to tint the control buttons on the navigation bar and the toolbar.
final
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