pub unsafe extern "C" fn OH_NativeXComponent_GetXComponentId(
component: *mut OH_NativeXComponent,
id: *mut c_char,
size: *mut u64,
) -> i32Expand description
Obtains the ID of the ArkUI XComponent.
§Arguments
-
component- Indicates the pointer to this OH_NativeXComponent instance. -
id- Indicates the char buffer to keep the ID of this OH_NativeXComponent instance.
Notice that a null-terminator will be appended to the char buffer, so the size of the
char buffer should be at least as large as the size of the real id length plus 1.
It is recommended that the size of the char buffer be [OH_XCOMPONENT_ID_LEN_MAX + 1].
size- Indicates the pointer to the length of id, which you can receive.
§Returns
- Returns the status code of the execution.
Available since API-level: 8
Version: 1.0