Skip to main content

OH_Image_Receiver_InitImageReceiverNative

Function OH_Image_Receiver_InitImageReceiverNative 

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

@brief Initializes an {@link ImageReceiverNative} object at the native layer through an ImageReceiver object at the application layer.

@param env Indicates the NAPI environment pointer. @param source Indicates an ImageReceiver object. @return Returns the pointer to the {@link ImageReceiverNative} object obtained if the operation is successful; returns a null pointer otherwise. @see ImageReceiverNative, OH_Image_Receiver_Release @since 10 @version 2.0