FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IActivityApplicationLifetime

    trait · ferroui-controls · v0.5.0

    trait IActivityApplicationLifetime: IApplicationLifetime
    

    The lifetime of an application whose views are created per activity: the platform asks the factory for a main view whenever it creates one.

    View source

    Members

    main_view_factory

    fn main_view_factory(self: &Self) -> Option<Rc<dyn Fn() -> Ref<Control>>>
    

    The factory that creates the main view of an activity.

    Source

    set_main_view_factory

    fn set_main_view_factory(self: &Self, value: Option<Rc<dyn Fn() -> Ref<Control>>>)
    

    Sets the factory that creates the main view of an activity.

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.