pub unsafe extern "C" fn OH_NativeWindow_GetMetadataValue(
window: *mut NativeWindow,
metadataKey: OH_NativeBuffer_MetadataKey,
size: *mut i32,
metadata: *mut *mut u8,
) -> i32Available on crate features
native_window and api-12 only.Expand description
Set the metadata type of the native window.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow
§Arguments
-
window- Indicates the pointer to a OHNativeWindow instance. -
metadataKey- Indicates the metadata type of native window, see OH_NativeBuffer_MetadataKey. -
size- Indicates the size of a uint8_t vector. -
metadata- Indicates the pointer to a uint8_t vector.
§Returns
- [
NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - window, metadata, or size is NULL. [NATIVE_ERROR_BUFFER_STATE_INVALID] 41207000 - Incorrect metadata state. [NATIVE_ERROR_UNSUPPORTED] 50102000 - Unsupported metadata key.
Available since API-level: 12
Version: 1.0