pub enum RegistryRequest {
RegisterGlobalViewTreeWatcher {
watcher: ServerEnd<ViewTreeWatcherMarker>,
responder: RegistryRegisterGlobalViewTreeWatcherResponder,
},
}
Expand description
*** ONLY FOR USE IN TESTS *** This is a sensitive protocol. It provides unlimited access to the global view tree. Hand it out ONLY to test components.
Production uses should obtain observation protocols through a graphics factory function (see |fuchsia.ui.composition.ViewBoundProtocols|), which securely ties observation protocols to a specific view client.
Variants§
RegisterGlobalViewTreeWatcher
Sets up a channel for receiving global view geometry.
This method may be called multiple times to obtain multiple geometry
ViewTreeWatcher
s, if necesary. However, typical test usage is to
obtain just one geometry ViewTreeWatcher
in the test component.
Flow control. The caller is allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
Client can freely disconnect this Registry
endpoint after this method
returns.
Fields
watcher: ServerEnd<ViewTreeWatcherMarker>
Implementations§
Source§impl RegistryRequest
impl RegistryRequest
pub fn into_register_global_view_tree_watcher( self, ) -> Option<(ServerEnd<ViewTreeWatcherMarker>, RegistryRegisterGlobalViewTreeWatcherResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL