Introduction to SDK
An outline of SDK
Overview
Vajro SDK allows your custom blocks and pages to communicate seamlessly with the native app. Using this SDK, you can:
- Access store data such as product, customer, and cart info.
- Execute native actions like navigation, authentication, alerts, and toasts.
- Subscribe to real-time listeners for cart updates, login changes, etc.
- Use helper utilities for smooth and consistent app behavior.
SDK Modules
The SDK is organized into four main sections for clarity and modular use.
| Category | Description |
|---|---|
| Variables | Variables provide quick access to current app context and data such as customer,product,cart. |
| Actions | Actions are built-in methods to perform app-level tasks and native navigation. |
| Listeners | Listeners help you detect and react to user actions inside the app — such as cart updates, login status changes, or product variant selections. |
| Helpers | Helpers are utility methods that simplify repetitive operations — like formatting prices, parsing responses, or managing state. |
Updated about 1 month ago