react-native-adapty - v4.0.1
    Preparing search index...

    Class OnboardingViewController

    Provides methods to control created onboarding view

    Since 4.0.0. The legacy onboarding view controller is deprecated — migrate to the Flow Builder API, which renders onboardings and paywalls natively instead of in a WebView. This class will be removed in a future version.

    Index

    Methods

    • Sets event handlers for onboarding view events

      Parameters

      Returns () => void

      unsubscribe - function to unsubscribe all listeners

      Each event type can have only one handler — new handlers replace existing ones. Default handlers are set during view creation: DEFAULT_ONBOARDING_EVENT_HANDLERS

      • onClose - closes onboarding view (returns true)

      If you want to override these listeners, we strongly recommend to return the same value as the default implementation from your custom listener to retain default behavior.

      Important: Calling this method multiple times will override only the handlers you provide, keeping previously set handlers intact.