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

## getEnterOptionsSync

> [VERSION] MiniKit >= 1.0.0

> [PLATFORM] iOS, Android

### Description

Get the parameters for this Mini Program launch. If it is a cold start, the return value matches the callback parameters of App.onLaunch; if it is a warm start, it matches App.onShow.

### 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.getEnterOptions({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
