Skip to main content

OH_ImageSource_InitNative

Function OH_ImageSource_InitNative 

Source
pub unsafe extern "C" fn OH_ImageSource_InitNative(
    env: napi_env,
    source: napi_value,
) -> *mut ImageSourceNative
Expand description

@brief Converts an {@link ImageSource} object at the JavaScript native layer to an ImageSourceNative object at the C++ native layer.

@param env Indicates a pointer to the JNI environment. @param source Indicates a pointer to the ImageSource object at the JavaScript native layer. @return Returns a pointer to the {@link ImageSourceNative} object if the operation is successful; returns a null pointer otherwise. @see {@link ImageSourceNative}, {@link OH_ImageSource_Release}

@syscap SystemCapability.Multimedia.Image @since 10 @version 4.0