iOSBrowserOptions¶
Configuration object that controls the appearance and behavior of an iOSBrowser session.
Kodster.InAppWebBrowser.iOS.iOSBrowserOptions
Overview¶
iOSBrowserOptions contains optional settings for iOSBrowser.
All properties are nullable. Unset values use the system default.
Use iOSBrowserOptionsBuilder to configure values and create instances.
Creating Instances¶
#if UNITY_IOS
var options = new iOSBrowserOptionsBuilder()
.WithColorScheme(iOSColorScheme.Dark)
.WithDismissButtonStyle(DismissButtonStyle.Close)
.Build();
iOSBrowser.Open("https://example.com", options);
#endif
Properties¶
ReaderModeEnabled¶
Whether the browser presents the page in Reader Mode if available.
BarCollapsingEnabled¶
Whether the toolbar collapses as the user scrolls.
Remarks
- Not available on iOS 26 or later.
DismissButtonStyle¶
Label or icon shown on the Dismiss button.
PresentationStyle¶
The way the browser is presented modally.
OpenInExternalHandlerEnabled¶
Whether URLs that can be handled by an external app are opened there instead of in-app.
ColorScheme¶
Color scheme used for the browser UI.
InteractiveDismissEnabled¶
Whether the user can dismiss the browser by tapping the app behind it.
PreferredContentSize¶
Preferred width and height of the browser content when in form-sheet style, in points.
AnimationEnabled¶
Whether presentation and dismissal are animated.
InitialHeightPercent¶
Initial height of the browser as a percentage of available screen height (0–100).
ExpansionEnabled¶
Whether the browser can be expanded to full height.
BackgroundInteractionEnabled¶
Whether the content behind the browser receives touch input.
GrabberVisible¶
Whether the grabber handle is shown at the top of the browser.
SheetCornerRadius¶
Corner radius of the browser, in points.
ExpandOnScrollEnabled¶
Whether scrolling content expands the browser to full height.
KeepSheetInLandscapeEnabled¶
Whether the browser remains a sheet in landscape orientation instead of going full-screen.
TransitionStyle¶
Animation style used when presenting the browser modally.