init(sdkConfig: SdkConfig)
To initialize the SDK, you need to provide a pixelId to identify the store. This process is asynchronous, so handle it accordingly.
Interface
| Field | Type | Required? | Description |
|---|---|---|---|
| sdkConfig | SdkConfig | ✔ | Constructor. |
Sdk Config
| Field | Type | Required? | Description |
|---|---|---|---|
| pixelId | string | ✔ | AfterShip Pixel ID is a 32-character string representing your store. Currently, AfterShip Pixel API is available by invitation only. Please contact us for more information and to obtain your pixel ID. |
Sample Usage
preparing...