Skip to main content

OH_TextEditorProxy_HandleExtendActionFunc

Type Alias OH_TextEditorProxy_HandleExtendActionFunc 

Source
pub type OH_TextEditorProxy_HandleExtendActionFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, action: InputMethod_ExtendAction)>;
Expand description

@brief Called when input method sending extend action.

You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetHandleExtendActionFunc}, and use {@link OH_InputMethodController_Attach} to complete the registration.\n

@param textEditorProxy Represents a pointer to an {@link InputMethod_TextEditorProxy} instance which will be set in. @param action Represents the extend action, which is defined in {@link InputMethod_ExtendAction}. @since 12

Aliased Type§

pub enum OH_TextEditorProxy_HandleExtendActionFunc {
    None,
    Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, u32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, u32))

Some value of type T.