Skip to main content

OH_NativeWindow_GetSurfaceId

Function OH_NativeWindow_GetSurfaceId 

Source
pub unsafe extern "C" fn OH_NativeWindow_GetSurfaceId(
    window: *mut OHNativeWindow,
    surfaceId: *mut u64,
) -> i32
Expand description

@brief Get surfaceId from native window.\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 surfaceId Indicates the pointer to a surfaceId. @return Returns an error code, 0 is success, otherwise, failed. @since 12 @version 1.0