pub enum GraphicalPresenterRequest {
PresentView {
view_spec: ViewSpec,
annotation_controller: Option<ClientEnd<AnnotationControllerMarker>>,
view_controller_request: Option<ServerEnd<ViewControllerMarker>>,
responder: GraphicalPresenterPresentViewResponder,
},
}Expand description
An interface used to instruct a server to present graphical views, and observe and control the view’s lifecycle.
Variants§
PresentView
Presents the view described by view_spec.
If view_controller_request is provided, it will be connected to a ViewController
implemented by the GraphicalPresenter server. When the view is dismissed,
the ViewController channel is closed with a ZX_OK, at which point it is safe
to clean up resources backing the view. To dismiss the view, the client should
call ViewController.Dismiss() and wait for the ZX_OK epitaph.
Not providing a view_controller_request handle will make it impossible for the
client to observe the view’s lifecycle.
view_specdescribes the view to presentannotation_controllera handle to anAnnotationController, allowing theGraphicalPresenterserver to observe and update the view’s annotations.view_controller_requestan optional request for a controller for the view
- error
view_specmust containview_holder_tokenandview_reffor Gfx views, ORviewport_creation_tokenfor Flatland views, but never both. If both are set, errorPresentViewError.INVALID_ARGSis returned. - error
PresentViewError.INVALID_ARGSifspec.view_holder_tokenorspec.view_refare missing or invalid.
Fields
§
annotation_controller: Option<ClientEnd<AnnotationControllerMarker>>§
view_controller_request: Option<ServerEnd<ViewControllerMarker>>§
responder: GraphicalPresenterPresentViewResponderImplementations§
Source§impl GraphicalPresenterRequest
impl GraphicalPresenterRequest
pub fn into_present_view( self, ) -> Option<(ViewSpec, Option<ClientEnd<AnnotationControllerMarker>>, Option<ServerEnd<ViewControllerMarker>>, GraphicalPresenterPresentViewResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphicalPresenterRequest
impl !RefUnwindSafe for GraphicalPresenterRequest
impl Send for GraphicalPresenterRequest
impl Sync for GraphicalPresenterRequest
impl Unpin for GraphicalPresenterRequest
impl !UnwindSafe for GraphicalPresenterRequest
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