Skip to main content

OH_TextEditorProxy_GetTextConfigFunc

Type Alias OH_TextEditorProxy_GetTextConfigFunc 

Source
pub type OH_TextEditorProxy_GetTextConfigFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, config: *mut InputMethod_TextConfig)>;
Expand description

@brief Defines the function called when input method getting text config.

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

@param textEditorProxy Represents a pointer to an {@link InputMethod_TextEditorProxy} instance. @param config Represents a pointer to an {@link InputMethod_TextConfig} instance. 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. @since 12

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.