SDK Reference
Complete API reference for the Marketfront SDK.
Overview
The SDK provides a consistent API across all platforms:
| Platform | Package | Main Class |
|---|---|---|
| Web | @gett/marketfront | MarketfrontClient |
| iOS | GettMarketfront | MarketfrontView |
| Android | com.gett:marketfront | MarketfrontView |
Reference Sections
- Client — Main client/view class with constructor and methods
- Types — Configuration interfaces and data types
- Events — Event payload type definitions
Quick Links
Constructor
- Web
- iOS
- Android
import { MarketfrontClient } from '@gett/marketfront';
// Session token from your backend
const client = new MarketfrontClient({
sessionToken,
onOrderComplete: (order) => {
console.log('Order placed:', order.id);
},
});
import GettMarketfront
// Session token from your backend
let marketfront = MarketfrontView(sessionToken: sessionToken)
import com.gett.marketfront.MarketfrontView
// Session token from your backend
val marketfront = MarketfrontView(
context = this,
sessionToken = sessionToken
)
Methods
| Method | Description |
|---|---|
mount(target) / addToView() | Display the marketfront |
unmount() / removeFromView() | Remove and cleanup |