OH_NativeWindow_NativeWindowSetTunnelHandle

Function OH_NativeWindow_NativeWindowSetTunnelHandle 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowSetTunnelHandle(
    window: *mut NativeWindow,
    handle: *const OHExtDataHandle,
) -> i32
Available on crate feature native_window only.
Expand description

Sets tunnel handle of a native window.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • window - Indicates the pointer to a OHNativeWindow instance.

  • handle - Indicates the pointer to a OHExtDataHandle.

§Returns

  • Returns an error code, 0 is success, otherwise, failed.

Available since API-level: 9

Version: 1.0 = “10”)