Skip to content

Commit abcba4b

Browse files
committed
Restore pages with links from product
1 parent 5ce2300 commit abcba4b

7 files changed

Lines changed: 488 additions & 52 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "Countdown timer"
3+
description: "Add a countdown timer to a paywall."
4+
metadataTitle: "Countdown timer | Flow Builder | Adapty Docs"
5+
---
6+
7+
import ZoomImage from '@site/src/components/ZoomImage';
8+
9+
<ZoomImage id="countdown-timer-selected.webp" width="700px" alt="Countdown timer selected on the canvas with the Countdown panel and Behavior dropdown visible" />
10+
11+
The **Countdown timer** counts down from a fixed duration to zero — once it reaches zero, the display freezes.
12+
13+
## Templates
14+
15+
<ZoomImage id="countdown-templates.webp" width="200px" alt="Countdown timer templates" float="left" />
16+
17+
The category provides four visual variants:
18+
19+
- **Blocks** — Days, hours, minutes, and seconds in separate labeled cells.
20+
- **Inline Units** — Single-line text with unit suffixes
21+
- **Inline** — Pure digits
22+
- **Badge** — A pill-shaped digit display.
23+
24+
## Settings
25+
26+
<ZoomImage id="builder-countdown-settings.webp" width="300px" float="right" alt="Countdown timer settings in the right panel" />
27+
28+
### Set the duration
29+
30+
In the **Countdown** section of the right panel, enter the starting duration in days, hours, minutes, and seconds.
31+
32+
### Configure the behavior
33+
34+
The **Behavior** dropdown controls when the timer starts:
35+
36+
- **Every appear** — Restarts every time the user opens the screen. Default.
37+
- **First appear** — Starts on the user's first screen view in the current app session. Keeps counting if they return during the same session; resets on a fresh app launch.
38+
- **First appear (persisted)** — Starts on the user's first screen open and keeps counting across app launches.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: "Custom fonts in the Flow Builder"
3+
description: "Upload and use custom fonts in the Flow Builder."
4+
metadataTitle: "Custom fonts | Flow Builder | Adapty Docs"
5+
---
6+
7+
import Zoom from 'react-medium-image-zoom';
8+
import 'react-medium-image-zoom/dist/styles.css';
9+
10+
When building flows, you might want to use a custom font to match the rest of your app. Here's how to add custom fonts and use them in your flows.
11+
12+
:::tip
13+
[Configure fonts](onboarding-text) in the **Styles** panel before you start designing the flow. This way, any changes you make will apply globally.
14+
:::
15+
16+
## Built-in fonts
17+
18+
When you create a flow in the Builder, Adapty uses a system font by default. This usually means SF Pro on iOS and Roboto on Android, though it can vary depending on the device. You can also choose from commonly used fonts like Arial, Times New Roman, Courier New, Georgia, and Helvetica. Each of these fonts comes with a few style options.
19+
20+
These fonts are not supplied as part of the Adapty SDK and are only used for preview purposes. We cannot guarantee they will work perfectly on all devices. However, in our testing, these fonts are typically recognized by most devices without any additional effort on your part. You can also [check out which fonts are available by default on iOS](https://developer.apple.com/fonts/system-fonts/).
21+
22+
23+
<ZoomImage id="use-fonts.webp" width="500px" alt="Built-in fonts" />
24+
25+
## Add a custom font
26+
27+
If you need more than what’s offered by default, you can add a custom font.
28+
29+
To add a custom font:
30+
31+
1. Choose **Upload new font** in any of the font dropdowns.
32+
33+
<ZoomImage id="upload-new-font.webp" width="300px" alt="Add custom font" />
34+
35+
2. In the **Add custom font** window, fill in the following fields:
36+
37+
- **Font name in Builder**: Enter a display name for the font. This name will appear in font dropdowns across the Builder.
38+
- **iOS font name**: Enter the PostScript name of the font. You can find it in Font Book → PostScript name, or through the [`UIFont` API](https://developer.apple.com/documentation/uikit/uifont).
39+
- **Android font name**: Enter the file name from `res/font/`. Use only lowercase letters, numbers, and underscores.
40+
- **Font file**: Drag and drop the font file or click **Select files**. Supported formats: `.ttf`, `.otf`, `.woff`, `.woff2`.
41+
42+
3. Click **Save font**.
43+
44+
<ZoomImage id="add-custom-font-window.webp" width="300px" alt="Add custom font window" />
45+
46+
:::warning
47+
The font file you upload is not sent to the device; it’s only used for preview. Our SDK receives only the strings referencing the font to use while rendering the paywall. Therefore, you must include the same font file in the app bundle and provide the correct platform-specific font names for everything to work smoothly. Don’t worry, it won’t take much time.
48+
:::
49+
50+
By uploading the font file to Adapty, you’re confirming that you have the right to use it in your app.
51+
52+
53+
## Add the font files to your app's bundle
54+
55+
If you’re already using a custom font elsewhere in your app, you just need to add your paywall fonts in the same way. If not, make sure to include the font file in your app's project and bundle. Read how to do it below:
56+
57+
- On iOS: [In Apple official documentation](https://developer.apple.com/documentation/uikit/adding-a-custom-font-to-your-app)
58+
- On Android: [In Android official documentation](https://developer.android.com/develop/ui/views/text-and-emoji/fonts-in-xml)
59+
60+
:::important
61+
When downloading font bundles, you'll receive all font variations in an archive. Only add the specific font files your paywall uses to your app bundle to minimize app size. For example, if you only use `OpenSans-Regular.ttf` in your paywall, don't include `OpenSans-Bold.ttf` in your app bundle.
62+
:::
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: "Custom images and video in Paywall Builder"
3+
description: ""
4+
metadataTitle: ""
5+
---
6+
7+
import Zoom from 'react-medium-image-zoom';
8+
import 'react-medium-image-zoom/dist/styles.css';
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
11+
import Contentid from '@site/src/components/InlineTooltip';
12+
import InlineTooltip from '@site/src/components/InlineTooltip';
13+
14+
You can set up any image or video on a paywall, but sometimes you might want to display a custom image or video that’s personalized for the user — for example, a video with their chosen avatar. That’s where custom media comes in.
15+
16+
Custom media is an image or video that your app calls by ID from your code. It replaces a standard media file you’ve added to the paywall in the Paywall Builder.
17+
18+
:::info
19+
To use this feature, update the Adapty SDK to version 3.7.0 or later.
20+
:::
21+
22+
## Where can I use custom media?
23+
24+
Anywhere you’d normally use a regular image or video:
25+
26+
- As a hero image
27+
- As a hero video
28+
- As a regular icon
29+
- In a card background
30+
- In a carousel background
31+
32+
## How to use custom media?
33+
To set up custom media:
34+
35+
1. Select the **Use custom media ID** checkbox under the upload area.
36+
37+
2. Enter the media ID. For hero images and hero videos, IDs are predefined.
38+
39+
3. Upload a fallback image or video in the file upload section.
40+
41+
4. For more information, see <InlineTooltip tooltip="the guides on how to fetch Paywall Builder paywalls in your app">[iOS](get-pb-paywalls.md), [Android](android-get-pb-paywalls.md), [React Native](react-native-get-pb-paywalls.md), [Flutter](flutter-get-pb-paywalls.md), and [Unity](unity-get-pb-paywalls.md)</InlineTooltip> and call the media by its ID in your code.
42+
43+
If the Adapty SDK version is below 3.7.0, or if the custom media ID isn't defined in your code, the fallback image or video will be displayed instead.
44+
45+
<Zoom>
46+
<img src={require('./img/custom-media.png').default}
47+
style={{
48+
border: '1px solid #727272', /* border width and color */
49+
width: '700px', /* image width */
50+
display: 'block', /* for alignment */
51+
margin: '0 auto' /* center alignment */
52+
}}
53+
/>
54+
</Zoom>

_old/paywall-builder-tag-variables.mdx renamed to src/content/docs/version-3.0/paywall-builder-tag-variables.mdx

File renamed without changes.

0 commit comments

Comments
 (0)