---
name: "getLaunchOptionsSync"
mode: "kit"
versionRequirements:
  - { name: "MiniKit", version: "1.0.0" }
platform:
  - "iOS"
  - "Android"
---

## getLaunchOptionsSync

> [VERSION] MiniKit >= 1.0.0

> [PLATFORM] iOS, Android

### Description

Get the parameters when the Mini Program launches. Same as the callback parameters of App.onLaunch.

### Parameters

None


### Referenced Types

##### `interface` ReferrerInfo

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `appId` | `string` | `3.2.0` | appId of the source mini program |
| `extraData` | `Record<string, any>` | `3.2.0` | Data passed from the source Mini Program; supported in specific scenes |


### Examples

```tsx
ty.getLaunchOptions({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
