OH_NativeVSync_Create

Function OH_NativeVSync_Create 

Source
pub unsafe extern "C" fn OH_NativeVSync_Create(
    name: *const c_char,
    length: c_uint,
) -> *mut OH_NativeVSync
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

  • 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: 9

Version: 1.0