pub struct MobileApp<S: GlobalState, W>{ /* private fields */ }Implementations§
Source§impl<S, W> MobileApp<S, W>
impl<S, W> MobileApp<S, W>
pub fn new(root_widget: W) -> Self
pub fn new_with_global_state(root_widget: W, global_state: S) -> Self
pub fn with_global_state(self, global_state: S) -> Self
pub fn with_key_handler<F>(self, handler: F) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_test_control_port(self, port: u16) -> Self
pub fn with_state_init<F>(self, init: F) -> Self
pub fn with_startup_action<A: Action>(self, action: A) -> Self
pub fn with_design_system<D: DesignSystem>(self, mode: DesignMode) -> Self
pub fn with_sync_env<F>(self, sync: F) -> Self
pub fn with_frame_hook<F>(self, hook: F) -> Self
pub fn with_async<F>(self, configure: F) -> Selfwhere
F: FnOnce(&mut AsyncRegistry),
pub fn with_notification_host<H>(self, host: H) -> Selfwhere
H: NotificationHost,
pub fn with_nfc_host<H>(self, host: H) -> Selfwhere
H: NfcHost,
pub fn with_biometric_host<H>(self, host: H) -> Selfwhere
H: BiometricHost,
pub fn with_passkey_host<H>(self, host: H) -> Selfwhere
H: PasskeyHost,
pub fn with_bluetooth_host<H>(self, host: H) -> Selfwhere
H: BluetoothHost,
pub fn with_barcode_scanner_host<H>(self, host: H) -> Selfwhere
H: BarcodeScannerHost,
pub fn with_camera_host<H>(self, host: H) -> Selfwhere
H: CameraHost,
pub fn with_clipboard_host<H>(self, host: H) -> Selfwhere
H: ClipboardHost,
pub fn with_geolocation_host<H>(self, host: H) -> Selfwhere
H: GeolocationHost,
pub fn with_haptic_host<H>(self, host: H) -> Selfwhere
H: HapticHost,
pub fn with_microphone_host<H>(self, host: H) -> Selfwhere
H: MicrophoneHost,
pub fn with_wifi_host<H>(self, host: H) -> Selfwhere
H: WifiHost,
pub fn with_volume_host<H>(self, host: H) -> Selfwhere
H: VolumeHost,
pub fn with_deep_link_config(self, config: DeepLinkConfig) -> Self
pub fn with_deep_link_scheme(self, scheme: impl Into<String>) -> Self
pub fn with_deep_link_domain(self, domain: impl Into<String>) -> Self
pub fn with_startup_deep_link(self, link: DeepLink) -> Self
pub fn with_startup_notification_response( self, response: NotificationResponse, ) -> Self
pub fn on_deep_link<H>(self, handler: H) -> Self
pub fn on_notification_response<H>(self, handler: H) -> Self
pub fn absorb_registry(&mut self, registry: ActionRegistry<S>)
pub fn run(self) -> Result<()>
Auto Trait Implementations§
impl<S, W> Freeze for MobileApp<S, W>where
W: Freeze,
impl<S, W> !RefUnwindSafe for MobileApp<S, W>
impl<S, W> Send for MobileApp<S, W>where
W: Send,
impl<S, W> !Sync for MobileApp<S, W>
impl<S, W> Unpin for MobileApp<S, W>
impl<S, W> UnsafeUnpin for MobileApp<S, W>where
W: UnsafeUnpin,
impl<S, W> !UnwindSafe for MobileApp<S, W>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more