---
name: "canIUse"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "3.15.1" }
platform:
  - "iOS"
  - "Android"
async: true
title: "ty.canIUse(schema: string): boolean"
---

## canIUse

> [VERSION] BaseKit >= 3.15.1

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Check whether APIs, callbacks, parameters, etc. are available in the current version.

### Parameters

`Params`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `schema` | `string` | Yes | - | Invoke using ${API}.${method}.${param}.${option} |

### Examples

```tsx
const result = ty.canIUse("ty.getSystemInfo");
console.log("canIUse ty.getSystemInfo:", result);
```
