From 4f2a3190505452a18a74a8a18d06628e366be009 Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Mon, 11 Aug 2025 10:22:03 +0100 Subject: [PATCH] docs: clarify InAppBrowser docs --- docs/apis/inappbrowser.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/apis/inappbrowser.md b/docs/apis/inappbrowser.md index 2308f3cb..ea7ebb01 100644 --- a/docs/apis/inappbrowser.md +++ b/docs/apis/inappbrowser.md @@ -168,7 +168,7 @@ Closes the currently active browser. It can be used to close browsers launched t addListener(eventName: 'browserClosed' | 'browserPageLoaded', listenerFunc: () => void) => Promise ``` -Adds a listener for the specified browser event. +Adds a listener for the specified browser events, with no data being returned. | Param | Type | Description | | ------------------ | --------------------------------------------------- | ------------------------------------------------------------------------------------ | @@ -186,12 +186,12 @@ Adds a listener for the specified browser event. addListener(eventName: 'browserPageNavigationCompleted', listenerFunc: (data: BrowserPageNavigationCompletedEventData) => void) => Promise ``` -Adds a listener for the specified browser event. +Adds a listener for the specified browser event, which receives data. -| Param | Type | Description | -| ------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| **`eventName`** | 'browserPageNavigationCompleted' | The name of the browser event to listen for: 'browserPageNavigationCompleted'. | -| **`listenerFunc`** | (data: BrowserPageNavigationCompletedEventData) => void | The function to be called when the event occurs. | +| Param | Type | Description | +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | +| **`eventName`** | 'browserPageNavigationCompleted' | The name of the browser event to listen for: 'browserPageNavigationCompleted'. Applies only to openInWebView. | +| **`listenerFunc`** | (data: BrowserPageNavigationCompletedEventData) => void | The function to be called when the event occurs. | **Returns:** Promise<PluginListenerHandle> @@ -293,10 +293,10 @@ Defines the options for opening a URL in the system browser. #### AndroidBottomSheet -| Prop | Type | Description | -| ------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| **`height`** | number | Sets the height of the bottom sheet. This will be a minimum of 50% of the screen's height. If no value is passed, we will default to the minimum value. | -| **`isFixed`** | boolean | Sets whether the bottom sheet is fixed. | +| Prop | Type | Description | +| ------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **`height`** | number | Sets the height of the bottom sheet, in pixels. Custom tabs will set the bottom height to at least 50% of the screen. If no value is passed, it will default to the minimum value. | +| **`isFixed`** | boolean | Sets whether the bottom sheet is fixed. | #### iOSSystemBrowserOptions