Skip to main content

Installation

Add the Gatlio Android SDK via a local composite build or published artifact:

Quick start

Wrap the authenticated portion of your app in GatlioGate:
  • ActiveYourApp renders normally
  • Warning — dismissable banner above content
  • Lockout — full-screen overlay until card is updated

Parameters

Callbacks

Callbacks fire on status transitions only.

Custom enforcement UI

Testing

Force a state

No network calls are made when forcedStatus is set. Remove before shipping.

Interactive sandbox

A DEV badge appears in the bottom-right corner. Tap to open a bottom sheet with state pills and a callback log. Remove before shipping to production.

Direct controller usage

For custom state management outside Compose:
Call controller.dispose() in onDestroy or when the controller is no longer needed.

Minimum SDK

API 26 (Android 8.0).