OH_NativeWindow_ReadFromParcel

Function OH_NativeWindow_ReadFromParcel 

Source
pub unsafe extern "C" fn OH_NativeWindow_ReadFromParcel(
    parcel: *mut OHIPCParcel,
    window: *mut *mut NativeWindow,
) -> i32
Available on crate features native_window and api-12 only.
Expand description

Read an OHNativeWindow from an OHIPCParcel.

This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • parcel - Indicates the pointer to an OHIPCParcel instance.

  • window - Indicates the pointer to an OHNativeWindow instance.

§Returns

  • [NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - parcel is NULL or parcel does not contain the window.

Available since API-level: 12

Version: 1.0