Skip to main content

OH_TextEditorProxy_DeleteBackwardFunc

Type Alias OH_TextEditorProxy_DeleteBackwardFunc 

Source
pub type OH_TextEditorProxy_DeleteBackwardFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, length: i32)>;
Expand description

@brief Defines the function called when input method deleting text backward.

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

@param textEditorProxy Represents a pointer to the {@link InputMethod_TextEditorProxy} instance which will be set in. @param length Represents the length of the text to be deleted. @since 12

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.