Input_InterceptorOptions

typedef struct Input_InterceptorOptions Input_InterceptorOptions

Overview

Defines event interception options.

Since: 12

Related module: input

Header file: oh_input_manager.h

Related APIs:

Name Description
OH_Input_AddKeyEventInterceptor Adds an interceptor for key events. If multiple interceptors are added, only the first one takes effect. Key events are intercepted only when the application gains focus.
OH_Input_RemoveKeyEventInterceptor Removes the interceptor for key events.
OH_Input_AddInputEventInterceptor Adds an interceptor for input events, including mouse, touch, and axis events. If multiple interceptors are added, only the first one takes effect. Key events are intercepted only when the application window is hit.
OH_Input_RemoveInputEventInterceptor Removes the interceptor for input events, including mouse, touch, and axis events.