pub unsafe extern "C" fn napi_create_object_with_properties(
env: napi_env,
result: *mut napi_value,
property_count: usize,
properties: *const napi_property_descriptor,
) -> napi_statusAvailable on crate features
napi and api-11 only.Expand description
Create ArkTS Object with initial properties given by descriptors, note that property key must be String, and must can not convert to element_index, also all keys must not duplicate.
§Arguments
-
env- Current running virtual machine context. -
result- The created ArkTS object. -
property_count- Number of the property descriptors. -
properties- Array of property descriptors which are expected to be applied to the ArkTS object.
§Returns
- Returns the function execution status.
Available since API-level: 11