Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

GuiApiLight

pub struct GuiApiLight<P: CheckedPermissions> { /* private fields */ }
Expand description

Reduced GUI API, usable by non-gui daemons

Implementations

impl<P: CheckedPermissions> GuiApiLight<P>

pub fn show_modal( &self, app_id: AppId, modal_style: ModalStyle, args: &[u8], ) -> Result<NavigationResult, GuiServerError>
where P: MessageAllowed<ShowModal>,

Permission: os/gui-server / ShowModal

Permission group: ui-and-input.brokered-modal

Required signature: thirdParty

Approval: grantOnFirstUse

Shows a modal of the app, giving it a navigation object

pub fn invoke_alert( &self, alert: InvokeAlert, ) -> Result<AlertResult, GuiServerError>
where P: MessageAllowed<ShowModal>,

Permission: os/gui-server / ShowModal

Permission group: ui-and-input.brokered-modal

Required signature: thirdParty

Approval: grantOnFirstUse

Trait Implementations

impl<P: Clone + CheckedPermissions> Clone for GuiApiLight<P>

fn clone(&self) -> GuiApiLight<P>

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl<P: Debug + CheckedPermissions> Debug for GuiApiLight<P>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl<P: Default + CheckedPermissions> Default for GuiApiLight<P>

fn default() -> GuiApiLight<P>

Returns the “default value” for a type. Read more

Auto Trait Implementations

impl<P> Freeze for GuiApiLight<P>

impl<P> RefUnwindSafe for GuiApiLight<P>

impl<P> Send for GuiApiLight<P>

impl<P> Sync for GuiApiLight<P>

impl<P> Unpin for GuiApiLight<P>

impl<P> UnsafeUnpin for GuiApiLight<P>

impl<P> UnwindSafe for GuiApiLight<P>