OH_NativeVSync_Create_ForAssociatedWindow

Function OH_NativeVSync_Create_ForAssociatedWindow 

Source
pub unsafe extern "C" fn OH_NativeVSync_Create_ForAssociatedWindow(
    windowID: u64,
    name: *const c_char,
    length: c_uint,
) -> *mut OH_NativeVSync
Available on crate feature api-14 only.
Expand description

Creates a NativeVsync instance.

A new NativeVsync instance is created each time this function is called.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeVsync

§Arguments

  • windowID - Indicates the id of the associated window.

  • name - Indicates the vsync connection name.

  • length - Indicates the name’s length.

§Returns

  • Returns the pointer to the NativeVsync instance created.

Available since API-level: 14

Version: 1.0