pub enum RegistryRequest {
RegisterTouchScreen {
payload: RegistryRegisterTouchScreenRequest,
responder: RegistryRegisterTouchScreenResponder,
},
RegisterMediaButtonsDevice {
payload: RegistryRegisterMediaButtonsDeviceRequest,
responder: RegistryRegisterMediaButtonsDeviceResponder,
},
RegisterKeyboard {
payload: RegistryRegisterKeyboardRequest,
responder: RegistryRegisterKeyboardResponder,
},
RegisterMouse {
payload: RegistryRegisterMouseRequest,
responder: RegistryRegisterMouseResponder,
},
}
Expand description
*** This protocol must not be used in production. ***
Enables clients to register fake input devices, which can be used to inject input events directly into Input Pipeline.
Variants§
RegisterTouchScreen
Enables the client to inject touch events using the corresponding
client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.TouchScreen
channel will remain open even
if the Registry
connection closes.
RegisterMediaButtonsDevice
Enables the client to inject media buttons events using the
corresponding client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.MediaButtonsDevice
channel will remain open
even if the Registry
connection closes.
Fields
responder: RegistryRegisterMediaButtonsDeviceResponder
RegisterKeyboard
Enables the client to inject keyboard events using the corresponding
client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.Keyboard
channel will remain open even
if the Registry
connection closes.
RegisterMouse
Enables the client to inject mouse events using the corresponding
client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.Mouse
channel will remain open even
if the Registry
connection closes.
Implementations§
source§impl RegistryRequest
impl RegistryRequest
pub fn into_register_touch_screen( self ) -> Option<(RegistryRegisterTouchScreenRequest, RegistryRegisterTouchScreenResponder)>
pub fn into_register_keyboard( self ) -> Option<(RegistryRegisterKeyboardRequest, RegistryRegisterKeyboardResponder)>
pub fn into_register_mouse( self ) -> Option<(RegistryRegisterMouseRequest, RegistryRegisterMouseResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL