pub unsafe extern "C" fn OH_ArkUI_RegisterSystemFontStyleChangeEvent(
node: ArkUI_NodeHandle,
userData: *mut c_void,
onFontStyleChange: Option<unsafe extern "C" fn(event: *mut ArkUI_SystemFontStyleEvent, userData: *mut c_void)>,
) -> i32Available on crate feature
api-12 only.Expand description
The event called when the system font style changes. Only one system font change callback can be registered for the same component.
§Arguments
-
node- Indicates the target node. -
userData- Indicates the custom data to be saved. -
onFontStyleChange- Callback Events.
§Returns
- Error code.
[
ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception.
Available since API-level: 12