Skip to main content

OH_NativeWindow_NativeObjectUnreference

Function OH_NativeWindow_NativeObjectUnreference 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeObjectUnreference(
    obj: *mut c_void,
) -> i32
Expand description

@brief Decreases the reference count of a native object and, when the reference count reaches 0, destroys this object.\n This interface is a non-thread-safe type interface.\n

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