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 Sets the image cache capacity of an OH_ImageReceiverOptions object.

@param options Pointer to an OH_ImageReceiverOptions object. @param capacity Capacity. @return {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful.
{@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if bad parameter. @since 12