pub enum ViewControllerRequest {
Dismiss {
control_handle: ViewControllerControlHandle,
},
}
Expand description
Gives clients of GraphicalPresenter
control over an individual view
presented through PresentView()
.
Variants§
Dismiss
Fields
§
control_handle: ViewControllerControlHandle
Instructs the presenter to dismiss the associated view. Once dismissed,
the ViewController
channel is closed with a ZX_OK
epitaph. At this
point, it is safe to clean up any resources (such as terminating
a component) backing the view.
Clients should call Dismiss()
prior to closing the ViewController
channel themselves.
Implementations§
source§impl ViewControllerRequest
impl ViewControllerRequest
pub fn into_dismiss(self) -> Option<ViewControllerControlHandle>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL