pub unsafe extern "C" fn OH_NativeWindow_CreateNativeWindowFromSurfaceId(
surfaceId: u64,
window: *mut *mut OHNativeWindow,
) -> i32Expand description
@brief Creates an OHNativeWindow instance.\n This interface needs to be used in conjunction with OH_NativeWindow_DestroyNativeWindow, otherwise memory leaks will occur.\n If there is a concurrent destroy OHNativeWindow, you need to add once and decrement once to the OHNativeWindow reference count through OH_NativeWindow_NativeObjectReference and OH_NativeWindow_NativeObjectUnreference.\n If the surface obtained through surfaceId is created in this process, the surface cannot be obtained across processes.\n This interface is a non-thread-safe type interface.\n
@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param surfaceId Indicates the surfaceId to a surface. @param window indicates the pointer to an OHNativeWindow instance. @return Returns an error code, 0 is Success, otherwise, failed. @since 12 @version 1.0