pub enum QuickAppHostCommand {
RouterPush(String),
RouterBack(u32),
StorageSet {
key: String,
value: String,
},
StorageDelete(String),
StorageClear,
ClipboardSet(String),
SetTitleBar(String),
VibrateShort,
PresentCanvas {
width: u32,
height: u32,
},
}Expand description
Outbound @system.* host bridge command drained by the generated QuickApp UX shell.
Variants§
RouterPush(String)
@system.router.push({ uri }).
RouterBack(u32)
@system.router.back().
StorageSet
@system.storage.set({ key, value }).
StorageDelete(String)
@system.storage.delete({ key }).
StorageClear
@system.storage.clear().
ClipboardSet(String)
@system.clipboard.set({ text }).
SetTitleBar(String)
this.$page.setTitleBar({ text }).
VibrateShort
@system.vibrator.vibrate({ mode: 'short' }).
PresentCanvas
Signals <canvas> 2D/WebGL frame presentation for (width, height).
Trait Implementations§
Source§impl Clone for QuickAppHostCommand
impl Clone for QuickAppHostCommand
Source§impl Debug for QuickAppHostCommand
impl Debug for QuickAppHostCommand
Source§impl PartialEq for QuickAppHostCommand
impl PartialEq for QuickAppHostCommand
impl StructuralPartialEq for QuickAppHostCommand
Auto Trait Implementations§
impl Forget for QuickAppHostCommand
impl Freeze for QuickAppHostCommand
impl Move for QuickAppHostCommand
impl RefUnwindSafe for QuickAppHostCommand
impl Send for QuickAppHostCommandwhere
RawVecInner: Send,
impl Sync for QuickAppHostCommandwhere
RawVecInner: Sync,
impl Unpin for QuickAppHostCommand
impl UnsafeUnpin for QuickAppHostCommand
impl UnwindSafe for QuickAppHostCommandwhere
RawVecInner: UnwindSafe,
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