pub unsafe extern "C" fn OH_NativeWindow_SetMetadataValue(
window: *mut OHNativeWindow,
metadataKey: OH_NativeBuffer_MetadataKey,
size: i32,
metadata: *mut u8,
) -> i32Expand description
@brief Set the metadata type of the native window.\n This interface is a non-thread-safe type interface.\n
@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to a OHNativeWindow instance. @param metadataKey Indicates the metadata type of native window, see OH_NativeBuffer_MetadataKey. @param size Indicates the size of a uint8_t vector. @param metadata Indicates the pointer to a uint8_t vector. @return {@link NATIVE_ERROR_OK} 0 - Success. {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - window or metadata is NULL. {@link NATIVE_ERROR_BUFFER_STATE_INVALID} 41207000 - Incorrect metadata state. {@link NATIVE_ERROR_UNSUPPORTED} 50102000 - Unsupported metadata key. @since 12 @version 1.0