OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue

Function OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue 

Source
pub unsafe extern "C" fn OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue(
    env: napi_env,
    value: napi_value,
    drawableDescriptor: *mut *mut ArkUI_DrawableDescriptor,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains a Resource object on the ArkTS side and maps it to an ArkUI_DrawableDescriptro object on the native side.

§Arguments

  • env - Indicates the NAPI environment pointer.

  • value - Indicates the Resource object created on the ArkTS side.

  • drawableDescriptor - Indicates the pointer to the ArkUI_DrawableDescriptro object.

§Returns

  • Returns the error code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 12