Skip to main content

OH_NativeWindow_NativeWindowDetachBuffer

Function OH_NativeWindow_NativeWindowDetachBuffer 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowDetachBuffer(
    window: *mut OHNativeWindow,
    buffer: *mut OHNativeWindowBuffer,
) -> i32
Expand description

@brief Detach a buffer from an OHNativeWindow instance.\n This interface is a non-thread-safe type interface.\n

@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to an OHNativeWindow instance. @param buffer Indicates the pointer to a OHNativeWindowBuffer instance. @return Returns an error code, 0 is success, otherwise, failed. @since 12 @version 1.0