Skip to content

Commit 8b26e79

Browse files
committed
Android 3.15.1
1 parent fc5863b commit 8b26e79

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

versioned_docs/version-3.0/android-present-onboardings.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ To do this, create `adapty_onboarding_placeholder_view.xml` in `res/layout` and
102102

103103
If you define a placeholder, the onboarding will be loaded in the background and automatically displayed once ready.
104104

105+
106+
105107
## Disable safe area paddings
106108

107109
By default, the onboarding view automatically applies safe area paddings to avoid system UI elements like status bar and navigation bar. However, if you want to disable this behavior and have full control over the layout, you can do so by setting the `safeAreaPaddings` parameter to `false`.
@@ -158,4 +160,37 @@ Alternatively, you can control this behavior globally by adding a boolean resour
158160
</resources>
159161
```
160162

161-
When `safeAreaPaddings` is set to `false`, the onboarding will extend to the full screen without any automatic padding adjustments, giving you complete control over the layout and allowing the onboarding content to use the entire screen space.
163+
When `safeAreaPaddings` is set to `false`, the onboarding will extend to the full screen without any automatic padding adjustments, giving you complete control over the layout and allowing the onboarding content to use the entire screen space.
164+
165+
## Open links in onboardings in an in-app browser
166+
167+
:::important
168+
Opening links in onboardings in an in-app browser is supported starting from Adapty SDK v. 3.15.1.
169+
:::
170+
171+
By default, links in onboardings open in the external browser.
172+
173+
To provide a seamless user experience, you can open links in an in-app browser. This displays web pages within your application, allowing users to see them without switching apps.
174+
175+
To enable this, set the `externalUrlsPresentation` parameter to `AdaptyWebPresentation.InAppBrowser`:
176+
177+
<Tabs groupId="views-code-examples" queryString>
178+
<TabItem value="kotlin" label="Kotlin" default>
179+
180+
```kotlin
181+
val onboardingConfig = AdaptyUI.getOnboardingConfiguration(
182+
onboarding = onboarding,
183+
externalUrlsPresentation = AdaptyWebPresentation.InAppBrowser
184+
)
185+
```
186+
</TabItem>
187+
<TabItem value="java" label="Java">
188+
189+
```java
190+
AdaptyOnboardingConfiguration onboardingConfig = AdaptyUI.getOnboardingConfiguration(
191+
onboarding,
192+
AdaptyWebPresentation.InAppBrowser
193+
);
194+
```
195+
</TabItem>
196+
</Tabs>

0 commit comments

Comments
 (0)