Lines Matching refs:event

21  * tree node operations, attribute setting, and event listening.
1771 * visible area change event of the component.
5400 * @brief Defines the parameter type of the component callback event.
5410 * @brief Defines the string type parameter used by the component callback event.
5420 * @brief Enumerates the event types supported by the NativeNode component.
5426 * @brief Defines the gesture event type.
5428 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is {@link ArkUI_UIInputEvent}.
5433 * @brief Defines the mount event.
5435 * This event is triggered when the component is mounted and displayed. \n
5436 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5442 * @brief Defines the unmount event.
5444 * This event is triggered when the component is unmounted and hidden. \n
5445 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5452 * @brief Defines the area change event.
5454 * This event is triggered when the component's size, position, or any other attribute that may
5456 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5484 * @brief Defines the focus event.
5486 * This event is triggered when the component obtains the focus. \n
5487 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5493 * @brief Defines the blur event.
5495 * This event is triggered when the component loses the focus. \n
5496 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5502 * @brief Defines the click event.
5504 * This event is triggered when the component is clicked. \n
5505 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5512 * <b>ArkUI_NodeComponentEvent.data[2].f32</b>: event timestamp. It is the interval between the time when the event
5514 * <b>ArkUI_NodeComponentEvent.data[3].i32</b>: event input device. The value <b>1</b> indicates the mouse,
5527 * @brief Defines event interception.
5529 * This event is triggered when the component is touched. \n
5530 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5535 * @brief Defines the visible area change event.
5537 * This event is triggered when the ratio of the component's visible area to its total area is greater than or less
5539 * Before registering this event, you must set <b>NODE_VISIBLE_AREA_CHANGE_RATIO</b>. \n
5540 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5551 * @brief Defines the event triggered when the mouse pointer is moved over or away from the component.
5554 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5563 * @brief Defines the click event.
5565 * This event is triggered when the component is clicked by a mouse device button or when the mouse pointer moves
5567 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5572 * @brief Defines the attach event.
5574 * This event is triggered when the component is attached. \n
5575 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5581 * @brief Defines the detach event.
5583 * This event is triggered when the component is detached. \n
5584 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5591 * @brief Defines the accessibility action event.
5593 * This event is triggered when The accessibility operation type has been set and
5595 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5607 * This event is triggered when a drag operation is about to start on a draggable item. \n
5608 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5618 * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the
5625 * The current component refers to the component that listens for this event. \n
5626 * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the
5633 * The current component refers to the component that listens for this event. \n
5634 * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the
5641 * The current component refers to the component that listens for this event. \n
5642 * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the
5650 * The current component refers to the component that listens for this event. \n
5651 * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the
5660 * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the
5669 * Trigger this event when TextDataDetectorConfig is set and recognized successfully.\n
5670 * When the event callback occurs, the event parameter{@link ArkUI_NodeEvent}The union type in the object is
5678 * @brief Defines the image loading success event.
5680 * This event is triggered when an image is successfully loaded or decoded. \n
5681 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5699 * @brief Defines the image loading failure event.
5701 * This event is triggered when an error occurs during image loading. \n
5702 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5711 * @brief Defines the SVG animation playback completion event.
5713 * This event is triggered when the animation playback in the loaded SVG image is complete. \n
5714 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5720 * @brief Defines image download process event.
5722 * This event is triggered when downloading webpage images from page components.\n
5723 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5731 * @brief Defines the event triggered when the toggle status changes.
5734 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5742 * @brief Defines the event triggered when the text input content changes.
5745 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5753 * @brief Defines the event triggered when the Enter key of the text input method is pressed.
5756 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5764 * @brief Defines the event triggered when the cut button on the pasteboard, which displays when the text box
5768 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5776 * @brief Defines the event triggered when the paste button on the pasteboard, which displays when the text box
5780 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5788 * @brief Defines the event triggered when the text selection position changes.
5791 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5801 * @brief Defines the event triggered when the input status changes.
5804 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5813 * @brief textInput This event is triggered when the input content changes.
5815 * Conditions for triggering this event: When the input content changes. \n
5816 * When the event callback occurs, the union type in the event parameter
5826 * @brief Defines the event triggered when matching with the regular expression specified by
5830 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5842 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5853 * @brief Defines the event triggered when text is about to be entered.
5855 * The event parameter is {@link ArkUI_NodeEvent}. \n
5866 * @brief Defines the event triggered when text is entered.
5868 * The event parameter is {@link ArkUI_NodeEvent}. \n
5877 * @brief Defines the event triggered when text is about to be deleted.
5879 * The event parameter is {@link ArkUI_NodeEvent}. \n
5893 * @brief Defines the event triggered when text is deleted.
5895 * The event parameter is {@link ArkUI_NodeEvent}. \n
5907 * @brief Defines the event triggered when the input in the text box changes.
5910 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5918 * @brief Defines the event triggered when the paste button on the pasteboard, which displays when the text box is
5922 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5930 * @brief Defines the event triggered when the text selection position changes.
5933 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5942 * @brief Defines the event triggered when matching with the regular expression specified by
5946 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5957 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
5968 * @brief Defines the event triggered when the input status changes.
5971 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is \n
5980 * @brief Defines the event triggered when the Enter key on the keyboard is pressed for the multi-line text box.
5982 * This event is not triggered when <b>keyType</b> is <b>ARKUI_ENTER_KEY_TYPE_NEW_LINE</b>. \n
5983 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is \n
5992 * @brief textArea This event is triggered when the input content changes.
5994 * Conditions for triggering this event: When the input content changes. \n
5995 * When the event callback occurs, the union type in the event parameter {@link ArkUI_NodeEvent} object is \n
6005 * @brief Defines the event triggered when text is about to be entered.
6007 * The event parameter is {@link ArkUI_NodeEvent}. \n
6018 * @brief Defines the event triggered when text is entered.
6020 * The event parameter is {@link ArkUI_NodeEvent}. \n
6029 * @brief Defines the event triggered when text is about to be deleted.
6031 * The event parameter is {@link ArkUI_NodeEvent}. \n
6045 * @brief Defines the event triggered when text is deleted.
6047 * The event parameter is {@link ArkUI_NodeEvent}. \n
6059 * @brief Defines the event triggered when the selected status of the <b>ARKUI_NODE_CHECKBOX</b> component changes.
6061 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6068 * @brief Defines the event triggered when a date is selected in the <b>ARKUI_NODE_DATE_PICKER</b> component.
6071 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6081 * @brief Defines the event triggered when a time is selected in the <b>ARKUI_NODE_TIME_PICKER</b> component.
6084 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6093 * @brief Defines the event triggered when an item is selected in the <b>ARKUI_NODE_TEXT_PICKER</b> component.
6096 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6104 * @brief Defines the event triggered when a date is selected in the <b>NODE_CALENDAR_PICKER</b>.
6106 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6115 * @brief Defines the event triggered when the <b>ARKUI_NODE_SLIDER</b> component is dragged or clicked.
6117 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6121 * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: state triggered by the event.\n
6126 * @brief Defines the event callback function triggered when an object is dragged or clicked by ARKUI_NODE_RADIO.
6127 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6135 * @brief Defines the event callback function triggered when the animation starts to play.
6137 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6144 * @brief Defines the event callback function triggered when the animation playback is paused.
6146 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6153 * @brief Defines the event callback function triggered when the animation playback is repeated.
6155 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6162 * @brief Defines the event callback function when the animation playback returns to the initial state.
6164 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6171 * @brief Defines the event callback function triggered when the animation playback is complete or stopped.
6173 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6181 * @brief Defines the event triggered when the index of the currently displayed element of this
6184 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6192 * @brief Defines the event triggered when the switching animation of this <b>ARKUI_NODE_SWIPER</b> instance starts.
6194 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6208 * @brief Defines the event triggered when the switching animation of this <b>ARKUI_NODE_SWIPER</b> instance ends.
6210 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6220 * @brief Defines the event triggered on a frame-by-frame basis when the page is turned by a swipe in this
6223 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6246 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6250 * which is consistent with the index change in the onChange event. \n
6259 * @brief Defines the event triggered when the <b>ARKUI_NODE_SCROLL</b> component scrolls.
6261 * Notes for triggering the event:\n
6262 * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input
6266 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6274 * @brief Defines the event triggered when each frame scrolling starts in the <b>ARKUI_NODE_SCROLL</b> component.
6276 * Notes for triggering the event:\n
6277 * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input
6279 * 2. This event is not triggered when the controller API is called. \n
6280 * 3. This event does not support the out-of-bounds bounce effect. \n
6281 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6287 * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: The event handler can work out the amount by which the component
6293 * @brief Define the enumeration value of the pre sliding trigger event for the scrolling container component.
6295 * The conditions that trigger this event: \n
6300 * When an event callback occurs, the union type in the event parameter {@ link ArkUI_NodeEvent} object is
6315 * @brief Define the event enumeration value triggered when sliding a scrolling container component.
6317 * The conditions that trigger this event: \n
6322 * When an event callback occurs, the union type in the event parameter {@ link ArkUI_NodeEvent} object is
6335 * @brief Defines the event triggered when scrolling starts in the <b>ARKUI_NODE_SCROLL</b> component.
6337 * Notes for triggering the event:\n
6338 * 1. This event is triggered when scrolling is started, with support for other input settings, such as keyboard
6340 * 2. This event is triggered when the controller API is called, accompanied by a transition animation. \n
6341 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6347 * @brief Defines the event triggered when scrolling of the <b>ARKUI_NODE_SCROLL</b> component stops.
6349 * Notes for triggering the event:\n
6350 * 1. This event is triggered when scrolling is stopped by the <b>ARKUI_NODE_SCROLL</b> component or other input
6352 * 2. This event is triggered when the controller API is called, accompanied by a transition animation. \n
6353 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6359 * @brief Defines the event triggered when scrolling of the <b>ARKUI_NODE_SCROLL</b> component reaches
6362 * Notes for triggering the event:\n
6363 * 1. This event is triggered when scrolling reaches the edge after being started by the <b>ARKUI_NODE_SCROLL</b>
6367 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6375 * Condition for triggering the event: \n
6377 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is
6384 * Condition for triggering the event: \n
6386 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is
6392 * @brief Defines the enumerated values of the event triggered, \n
6394 * Condition for triggering the event: \n
6397 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is
6409 * @brief Defines the enumerated values of the event triggered
6411 * Condition for triggering the event: \n
6412 * This event is triggered when the scrolling component triggers scrolling. \n
6416 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6430 * @brief Define the enumerated values of the event triggered when the ARKUI_NODE_LIST component is flicked.
6431 * Condition for triggering the event: \n
6432 * This event is triggered when the scrolling component triggers scrolling. \n
6436 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6447 * @brief Defines the event triggered when the refresh state of the <b>ARKUI_NODE_REFRESH</b> object changes.
6449 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6456 * @brief Defines the event triggered when the <b>ARKUI_NODE_REFRESH</b> object enters the refresh state.
6458 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6465 * @brief Defines the event that is triggered when the <b>ARKUI_NODE_REFRESH</b> drop-down distance changes.
6467 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6475 * @brief Defines the event triggered when the <b>ARKUI_NODE_SCROLL</b> component is about to scroll.
6477 * Notes for triggering the event:\n
6478 * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other
6482 * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
6496 * @brief Define the enumerated values of the event triggered when the ARKUI_NODE_WATER_FLOW component slides.
6497 * Condition for triggering the event: \n
6498 * This event is triggered when the scrolling component triggers scrolling.
6502 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6511 * @brief Defines the enumerated values of the event triggered,
6513 * Condition for triggering the event: \n
6514 * This event is triggered when the index value of the \n
6516 * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n
6528 * @brief Defines the common structure type of a component event.
6535 * @brief Obtains the type of a component event.
6537 * @param event Indicates the pointer to the component event.
6538 * @return Returns the type of the component event.
6541 ArkUI_NodeEventType OH_ArkUI_NodeEvent_GetEventType(ArkUI_NodeEvent* event);
6544 * @brief Obtains the custom ID of a component event.
6546 * The event ID is passed in as a parameter when the {@link registerNodeEvent} function is called and can be applied
6547 * to the dispatch logic of the same event entry function {@link registerNodeEventReceiver}.
6549 * @param event Indicates the pointer to the component event.
6550 * @return Returns the custom ID of the component event.
6553 int32_t OH_ArkUI_NodeEvent_GetTargetId(ArkUI_NodeEvent* event);
6556 * @brief Obtains the component object that triggers a component event.
6558 * @param event Indicates the pointer to the component event.
6559 * @return Returns the component object that triggers the component event.
6562 ArkUI_NodeHandle OH_ArkUI_NodeEvent_GetNodeHandle(ArkUI_NodeEvent* event);
6565 * @brief Obtains input event (for example, touch event) data for a component event.
6567 * @param event Indicates the pointer to the component event.
6568 * @return Returns the pointer to the input event data.
6571 ArkUI_UIInputEvent* OH_ArkUI_NodeEvent_GetInputEvent(ArkUI_NodeEvent* event);
6574 * @brief Obtains the numerical data in a component event.
6576 * @param event Indicates the pointer to the component event.
6580 ArkUI_NodeComponentEvent* OH_ArkUI_NodeEvent_GetNodeComponentEvent(ArkUI_NodeEvent* event);
6583 * @brief Obtains the string data in a component event.
6585 * @param event Indicates the pointer to the component event.
6589 ArkUI_StringAsyncEvent* OH_ArkUI_NodeEvent_GetStringAsyncEvent(ArkUI_NodeEvent* event);
6592 * @brief Obtains the custom data in a component event.
6594 * This parameter is passed in {@link registerNodeEvent} and can be applied to the service logic when the event
6597 * @param event Indicates the pointer to the component event.
6601 void* OH_ArkUI_NodeEvent_GetUserData(ArkUI_NodeEvent* event);
6604 * @brief Obtains the numeric-type parameter of a component event.
6606 * @param event Indicates the pointer to the component event.
6613 * Returns {@link ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID} if the data does not exist in the component event.
6616 int32_t OH_ArkUI_NodeEvent_GetNumberValue(ArkUI_NodeEvent* event, int32_t index, ArkUI_NumberValue* value);
6619 * @brief Obtains the string-type parameter of a component event. The string data is valid only during an event
6620 * callback. To use it outside an event callback, you are advised to copy the string data.
6622 * @param event Indicates the pointer to the component event.
6630 * Returns {@link ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID} if the data does not exist in the component event.
6633 int32_t OH_ArkUI_NodeEvent_GetStringValue(ArkUI_NodeEvent* event, int32_t index, char** string, int32_t* stringSize);
6636 * @brief Sets the return value for a component event.
6638 * @param event Indicates the pointer to the component event.
6643 * Returns {@link ARKUI_ERROR_CODE_NODE_EVENT_NO_RETURN} if the component event does not support return values.
6644 * Returns {@link ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID} if data does not exist in the component event.
6647 int32_t OH_ArkUI_NodeEvent_SetReturnNumberValue(ArkUI_NodeEvent* event, ArkUI_NumberValue* value, int32_t size);
6669 * @brief Defines the custom component event type.
6687 * @brief Defines the general structure of a custom component event.
6701 * @brief Defines the component adapter event.
6713 /** This event occurs when the component is attached to the adapter. */
6715 /** This event occurs when the component is detached from the adapter. */
6717 /** This event occurs when the adapter obtains the unique ID of the new element to add. */
6719 /** This event occurs when the adapter obtains the content of the new element to add. */
6721 /** This event occurs when the adapter removes an element. */
6762 * @brief Registers an event callback for the adapter.
6766 * @param receiver Indicates the event receiver callback.
6773 ArkUI_NodeAdapterHandle handle, void* userData, void (*receiver)(ArkUI_NodeAdapterEvent* event));
6776 * @brief Deregisters an event callback for the adapter.
6866 * @brief Obtains the custom data passed in during registration of the specified event.
6868 * @param event Indicates the target adapter event.
6871 void* OH_ArkUI_NodeAdapterEvent_GetUserData(ArkUI_NodeAdapterEvent* event);
6874 * @brief Obtains the event type.
6876 * @param event Indicates the target adapter event.
6877 * @return Returns the event type.
6880 ArkUI_NodeAdapterEventType OH_ArkUI_NodeAdapterEvent_GetType(ArkUI_NodeAdapterEvent* event);
6883 * @brief Obtains the element to be removed for the event to be destroyed.
6885 * @param event Indicates the target adapter event.
6889 ArkUI_NodeHandle OH_ArkUI_NodeAdapterEvent_GetRemovedNode(ArkUI_NodeAdapterEvent* event);
6892 * @brief Obtains the index of the element to be operated for the specified adapter event.
6894 * @param event Indicates the target adapter event.
6898 uint32_t OH_ArkUI_NodeAdapterEvent_GetItemIndex(ArkUI_NodeAdapterEvent* event);
6903 * @param event Indicates the target adapter event.
6907 ArkUI_NodeHandle OH_ArkUI_NodeAdapterEvent_GetHostNode(ArkUI_NodeAdapterEvent* event);
6912 * @param event Indicates the target adapter event.
6919 int32_t OH_ArkUI_NodeAdapterEvent_SetItem(ArkUI_NodeAdapterEvent* event, ArkUI_NodeHandle node);
6924 * @param event Indicates the target adapter event.
6931 int32_t OH_ArkUI_NodeAdapterEvent_SetNodeId(ArkUI_NodeAdapterEvent* event, int32_t id);
7082 * @brief Registers an event for the specified node.
7087 * @param eventType Indicates the type of event to register.
7088 * @param targetId Indicates the custom event ID, which is passed in the callback of {@link ArkUI_NodeEvent}
7089 * when the event is triggered.
7090 * @param userData Indicates the custom event parameter, which is passed in the callback of {@link ArkUI_NodeEvent}
7104 * @brief Unregisters an event for the specified node.
7109 * @param eventType Indicates the type of event to unregister.
7114 * @brief Registers an event receiver.
7117 * the registered event receiver. \n
7118 * A new call to this API will overwrite the previously registered event receiver. \n
7123 * @param eventReceiver Indicates the event receiver to register.
7125 void (*registerNodeEventReceiver)(void (*eventReceiver)(ArkUI_NodeEvent* event));
7128 * @brief Unregisters the event receiver.
7193 * @brief Registers a custom event for a node. When the event is triggered, the value is returned through the entry
7197 * @param eventType Indicates the type of event to register.
7198 * @param targetId Indicates the custom event ID, which is passed in the callback of {@link ArkUI_NodeCustomEvent}
7199 * when the event is triggered.
7200 * @param userData Indicates the custom event parameter, which is passed in the callback of
7201 * {@link ArkUI_NodeCustomEvent} when the event is triggered.
7212 * @brief Unregisters a custom event for a node.
7215 * @param eventType Indicates the type of event to unregister.
7220 * @brief Registers a unified entry point function for custom node event callbacks.
7224 * A new call to this API will overwrite the previously registered event receiver.
7229 * @param eventReceiver Indicates the event receiver to register.
7231 void (*registerNodeCustomEventReceiver)(void (*eventReceiver)(ArkUI_NodeCustomEvent* event));
7234 * @brief Unregisters the unified entry point function for custom node event callbacks.
7305 * @brief Adds a component event callback function to a component to receive component events generated
7308 * Unlike the global registration function <b>registerNodeEventReceiver</b>, this API allows multiple event
7315 * @param node Indicates the component for which you want to add the event callback function.
7316 * @param eventReceiver Indicates the component event callback function to add.
7321 int32_t (*addNodeEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeEvent* event));
7324 * @brief Removes the registered component event callback function from a component.
7326 * @param node Indicates the component from which you want to remove the event callback function.
7327 * @param eventReceiver Indicates the component event callback function to remove.
7332 int32_t (*removeNodeEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeEvent* event));
7335 * @brief Adds a custom event callback function to a component to receive custom events
7339 * multiple event receivers to be added to the same component. \n
7345 * @param node Indicates the component for which you want to add the custom event callback function.
7346 * @param eventReceiver Indicates the custom event callback function to add.
7351 int32_t (*addNodeCustomEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeCustomEvent* event));
7354 * @brief Removes a registered custom event callback function from a component.
7356 * @param node Indicates the component from which you want to remove the custom event callback function.
7357 * @param eventReceiver Indicates the custom event callback function to remove.
7363 void (*eventReceiver)(ArkUI_NodeCustomEvent* event));
7417 * @brief Obtains the size constraint for measurement through a custom component event.
7419 * @param event Indicates the pointer to the custom component event.
7423 ArkUI_LayoutConstraint* OH_ArkUI_NodeCustomEvent_GetLayoutConstraintInMeasure(ArkUI_NodeCustomEvent* event);
7427 * custom component event.
7429 * @param event Indicates the pointer to the custom component event.
7433 ArkUI_IntOffset OH_ArkUI_NodeCustomEvent_GetPositionInLayout(ArkUI_NodeCustomEvent* event);
7436 * @brief Obtains the drawing context through a custom component event.
7438 * @param event Indicates the pointer to the custom component event.
7442 ArkUI_DrawContext* OH_ArkUI_NodeCustomEvent_GetDrawContextInDraw(ArkUI_NodeCustomEvent* event);
7445 * @brief Obtains the ID of a custom component event.
7447 * @param event Indicates the pointer to the custom component event.
7448 * @return Returns the ID of the custom component event.
7451 int32_t OH_ArkUI_NodeCustomEvent_GetEventTargetId(ArkUI_NodeCustomEvent* event);
7454 * @brief Obtains custom event parameters through a custom component event.
7456 * @param event Indicates the pointer to the custom component event.
7457 * @return Returns the custom event parameters.
7460 void* OH_ArkUI_NodeCustomEvent_GetUserData(ArkUI_NodeCustomEvent* event);
7463 * @brief Obtains a component object through a custom component event.
7465 * @param event Indicates the pointer to the custom component event.
7469 ArkUI_NodeHandle OH_ArkUI_NodeCustomEvent_GetNodeHandle(ArkUI_NodeCustomEvent* event);
7472 * @brief Obtains the event type through a custom component event.
7474 * @param event Indicates the pointer to the custom component event.
7475 * @return Returns the type of the custom component event.
7478 ArkUI_NodeCustomEventType OH_ArkUI_NodeCustomEvent_GetEventType(ArkUI_NodeCustomEvent* event);
7481 * @brief Obtains the measurement information of a custom span through a custom component event.
7483 * @param event Indicates the pointer to the custom component event.
7492 ArkUI_NodeCustomEvent* event, ArkUI_CustomSpanMeasureInfo* info);
7495 * @brief Sets the measurement metrics of a custom span through a custom component event.
7497 * @param event Indicates the pointer to the custom component event.
7506 ArkUI_NodeCustomEvent* event, ArkUI_CustomSpanMetrics* metrics);
7509 * @brief Obtains the drawing information of a custom span through a custom component event.
7511 * @param event Indicates the pointer to the custom component event.
7520 ArkUI_NodeCustomEvent* event, ArkUI_CustomSpanDrawInfo* info);
7523 * @brief Defines the node content event type.
7528 /** Defines the attach event. */
7530 /** Defines the detach event. */
7535 * @brief Defines the general structure of a node content event.
7541 * @brief Defines the callback function of a node content event.
7544 typedef void (*ArkUI_NodeContentCallback)(ArkUI_NodeContentEvent* event);
7559 * @brief Obtains the type of a node content event.
7561 * @param event Indicates the pointer to the node content event.
7562 * @return Returns the type of the node content event.
7565 ArkUI_NodeContentEventType OH_ArkUI_NodeContentEvent_GetEventType(ArkUI_NodeContentEvent* event);
7568 * @brief Obtains the node content object that triggers a node content event.
7570 * @param event Indicates the pointer to the node content event.
7571 * @return Returns the node content object that triggers the node content event.
7574 ArkUI_NodeContentHandle OH_ArkUI_NodeContentEvent_GetNodeContentHandle(ArkUI_NodeContentEvent* event);
7735 * @param userData Custom event parameters are carried back in the callback parameter when the event is triggered.
7740 * {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} The component does not support this event.
7756 * @brief The event called when the system color mode changes.
7765 * {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} The component does not support this event.
7772 * @brief Unregister the event callback when the system color mode changes.
7780 * @brief The event called when the system font style changes.
7789 * {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} The component does not support this event.
7793 void* userData, void (*onFontStyleChange)(ArkUI_SystemFontStyleEvent* event, void* userData));
7796 * @brief Unregister the event callback when the system font style changes.
7806 * @param event Indicates a pointer to the current system font change event.
7810 float OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale(const ArkUI_SystemFontStyleEvent* event);
7815 * @param event Indicates a pointer to the current system font change event.
7819 float OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale(const ArkUI_SystemFontStyleEvent* event);