Skip to main content

OH_ImageReceiverOptions_SetCapacity

Function OH_ImageReceiverOptions_SetCapacity 

Source
pub unsafe extern "C" fn OH_ImageReceiverOptions_SetCapacity(
    options: *mut OH_ImageReceiverOptions,
    capacity: i32,
) -> Image_ErrorCode
Expand description

@brief Set capacity of an {@link OH_ImageReceiverOptions} object.

@param options Indicates the pointer to an {@link OH_ImageReceiverOptions} object. @param capacity Indicates the value of capacity will be seted. @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if bad parameter. @since 12