pub type ArkUI_TextMenuItemClickCallback = Option<unsafe extern "C" fn(item: *const ArkUI_TextMenuItem, start: i32, end: i32, userData: *mut c_void) -> bool>;Available on crate features
api-12 and api-22 only.Expand description
The text menu item click callback function.
§Arguments
-
item- The menu item click. -
start- The start offset of the selected content. -
end- The end offset of the selected content. -
userData- The user data.
§Returns
- bool Return True, the event is consumed, false otherwise.
Available since API-level: 22
Aliased Type§
pub enum ArkUI_TextMenuItemClickCallback {
None,
Some(unsafe extern "C" fn(*const ArkUI_TextMenuItem, i32, i32, *mut c_void) -> bool),
}