canIUse(schema: string)

Requires:
BaseKit≥3.15.1
Platforms:
iOSAndroid
import { canIUse } from '@ray-js/ray';

// Promise usage
try {
  const res = await canIUse({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Determine whether the API, callbacks, parameters, etc. are available in the current version.

Parameters

ParameterTypeRequiredDescription
schemastringYesCall using ${API}.${method}.${param}.${option}

Return Value

None

Examples

import { canIUse } from '@ray-js/ray'

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