pub unsafe extern "C" fn OH_NativeWindow_WriteToParcel(
window: *mut NativeWindow,
parcel: *mut OHIPCParcel,
) -> i32Available on crate features
native_window and api-12 only.Expand description
Write an OHNativeWindow to an OHIPCParcel.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow
§Arguments
-
window- Indicates the pointer to an OHNativeWindow instance. -
parcel- Indicates the pointer to an OHIPCParcel instance.
§Returns
- [
NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - parcel is NULL or window is NULL.
Available since API-level: 12
Version: 1.0