pub unsafe extern "C" fn napi_create_symbol(
env: napi_env,
description: napi_value,
result: *mut napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Creates an ArkTS symbol.
§Arguments
-
env- Current running virtual machine context. -
description- Optional napi_value representing an ArkTS string to describe the symbol. -
result- A napi_value representing an ArkTS symbol.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param env and(or) result is nullptr;
If the param description is not nullptr and is not an ArkTS String.
Available since API-level: 10