pub enum SystemContextMenuItem {
Copy,
Cut,
Paste,
SelectAll,
LookUp {
title: String,
},
SearchWeb {
title: String,
},
Share {
title: String,
},
LiveText,
Custom {
id: String,
title: String,
},
}Expand description
A button to show in the system-rendered context menu.
Flutter serializes this as the items list of ContextMenu.showSystemContextMenu.
Built-in kinds have no callback: the platform performs the action (on iOS, against
the active text input). Custom is invoked through
crate::EmbedderClient::custom_context_menu_action.
Variants§
Copy
The system’s built-in copy button.
Cut
The system’s built-in cut button.
Paste
The system’s built-in paste button.
SelectAll
The system’s built-in select-all button.
LookUp
The system’s built-in look-up button.
SearchWeb
The system’s built-in search-web button.
The system’s built-in share button.
LiveText
The system’s built-in Live Text (OCR) button.
Custom
A developer-defined button.
Fields
§
id: StringId the host sends back on crate::EmbedderClient::custom_context_menu_action.
Trait Implementations§
Source§impl Clone for SystemContextMenuItem
impl Clone for SystemContextMenuItem
Source§fn clone(&self) -> SystemContextMenuItem
fn clone(&self) -> SystemContextMenuItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemContextMenuItem
impl Debug for SystemContextMenuItem
impl Eq for SystemContextMenuItem
Source§impl PartialEq for SystemContextMenuItem
impl PartialEq for SystemContextMenuItem
impl StructuralPartialEq for SystemContextMenuItem
Auto Trait Implementations§
impl Freeze for SystemContextMenuItem
impl RefUnwindSafe for SystemContextMenuItem
impl Send for SystemContextMenuItem
impl Sync for SystemContextMenuItem
impl Unpin for SystemContextMenuItem
impl UnsafeUnpin for SystemContextMenuItem
impl UnwindSafe for SystemContextMenuItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.