pub type OH_TextEditorProxy_InsertTextFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, text: *const u16, length: usize)>;Expand description
@brief Defines the function called when input method inserting text.
You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetInsertTextFunc}, 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 text Represents a pointer to the text to be inserted. You can only access the memory when this callback is called. After this callback returns, the memory will be released and you should not access this memory again. @param length Represents the length of the text to be inserted. @since 12
Aliased Type§
pub enum OH_TextEditorProxy_InsertTextFunc {
None,
Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, *const u16, usize)),
}