Skip to main content

The FAQ Provider allows you to manage and deliver multilingual FAQs dynamically. It uses the same offline-first architecture as the string system.

Features

  • Offline-First: FAQs are cached locally in the Room database.
  • Tagging: Filter FAQs by tags (e.g., “payments”, “account”) and sub-tags.
  • Reactive: Listen for updates using Kotlin Flows.

Initialization

Before using the FAQ Provider, ensure the Stringboot SDK is initialized in your Application class:

Usage

Fetching FAQs

Use FAQProvider.getFAQs() to fetch a list of FAQs.

Reactive Flow

Use getFAQsFlow() to observe changes:

Filtering by Sub-Tags

You can filter by sub-tags to get more specific results:

Syncing

FAQs are synced automatically, but you can force a refresh: