Skip to main content

IFerroViewController

Trait IFerroViewController 

Source
pub trait IFerroViewController {
    // Required methods
    fn preferred_status_bar_style(&self) -> StatusBarStyle;
    fn set_preferred_status_bar_style(&self, value: StatusBarStyle);
    fn prefers_status_bar_hidden(&self) -> bool;
    fn set_prefers_status_bar_hidden(&self, value: bool);
    fn safe_area_padding(&self) -> Thickness;
    fn safe_area_padding_changed(
        &self,
        handler: Rc<dyn Fn()>,
    ) -> Rc<dyn IDisposable>;
}
Expand description

What a view needs of the view controller it is shown by. Unstable.

Required Methods§

Source

fn preferred_status_bar_style(&self) -> StatusBarStyle

The preferred style of the status bar.

Source

fn set_preferred_status_bar_style(&self, value: StatusBarStyle)

Sets the preferred style of the status bar.

Source

fn prefers_status_bar_hidden(&self) -> bool

Whether the status bar is hidden.

Source

fn set_prefers_status_bar_hidden(&self, value: bool)

Hides or shows the status bar.

Source

fn safe_area_padding(&self) -> Thickness

The padding that keeps content out of the areas the system covers.

Source

fn safe_area_padding_changed( &self, handler: Rc<dyn Fn()>, ) -> Rc<dyn IDisposable>

The safe area padding changed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IFerroViewController for DefaultFerroViewController

The contract of a view controller, which the class implements as the reference’s does, through its state. The getters of the status bar are the values that were set (or the defaults), not the answers to UIKit (preferredStatusBarStyle and prefersStatusBarHidden of the class), as in the reference, where the two are implemented explicitly.

Source§

impl IFerroViewController for ViewControllerState