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:

  1. Access store data such as product, customer, and cart info.
  2. Execute native actions like navigation, authentication, alerts, and toasts.
  3. Subscribe to real-time listeners for cart updates, login changes, etc.
  4. Use helper utilities for smooth and consistent app behavior.

SDK Modules

The SDK is organized into four main sections for clarity and modular use.

CategoryDescription
VariablesVariables provide quick access to current app context and data such as customer,product,cart.
ActionsActions are built-in methods to perform app-level tasks and native navigation.
ListenersListeners help you detect and react to user actions inside the app — such as cart updates, login status changes, or product variant selections.
HelpersHelpers are utility methods that simplify repetitive operations — like formatting prices, parsing responses, or managing state.