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§
Sourcefn preferred_status_bar_style(&self) -> StatusBarStyle
fn preferred_status_bar_style(&self) -> StatusBarStyle
The preferred style of the status bar.
Sourcefn set_preferred_status_bar_style(&self, value: StatusBarStyle)
fn set_preferred_status_bar_style(&self, value: StatusBarStyle)
Sets the preferred style of the status bar.
Whether the status bar is hidden.
Hides or shows the status bar.
Sourcefn safe_area_padding(&self) -> Thickness
fn safe_area_padding(&self) -> Thickness
The padding that keeps content out of the areas the system covers.
Sourcefn safe_area_padding_changed(
&self,
handler: Rc<dyn Fn()>,
) -> Rc<dyn IDisposable>
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§
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.