OH_NativeWindow_CleanCache

Function OH_NativeWindow_CleanCache 

Source
pub unsafe extern "C" fn OH_NativeWindow_CleanCache(
    window: *mut NativeWindow,
) -> i32
Available on crate features native_window and api-19 only.
Expand description

Clean all OHNativeWindowBuffer caches of this OHNativeWindow This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • window - Indicates the pointer to a OHNativeWindow instance.

§Returns

  • [NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - window is NULL. [NATIVE_ERROR_CONSUMER_DISCONNECTED] 41211000 - the consumer is disconnected. [NATIVE_ERROR_BINDER_ERROR] 50401000 - ipc send failed.

Available since API-level: 19

Version: 1.0