pub enum RegistryRequest {
RegisterTouchScreen {
payload: RegistryRegisterTouchScreenRequest,
responder: RegistryRegisterTouchScreenResponder,
},
RegisterTouchScreenAndGetDeviceInfo {
payload: RegistryRegisterTouchScreenAndGetDeviceInfoRequest,
responder: RegistryRegisterTouchScreenAndGetDeviceInfoResponder,
},
RegisterMediaButtonsDevice {
payload: RegistryRegisterMediaButtonsDeviceRequest,
responder: RegistryRegisterMediaButtonsDeviceResponder,
},
RegisterMediaButtonsDeviceAndGetDeviceInfo {
payload: RegistryRegisterMediaButtonsDeviceAndGetDeviceInfoRequest,
responder: RegistryRegisterMediaButtonsDeviceAndGetDeviceInfoResponder,
},
RegisterKeyboard {
payload: RegistryRegisterKeyboardRequest,
responder: RegistryRegisterKeyboardResponder,
},
RegisterKeyboardAndGetDeviceInfo {
payload: RegistryRegisterKeyboardAndGetDeviceInfoRequest,
responder: RegistryRegisterKeyboardAndGetDeviceInfoResponder,
},
RegisterMouse {
payload: RegistryRegisterMouseRequest,
responder: RegistryRegisterMouseResponder,
},
RegisterMouseAndGetDeviceInfo {
payload: RegistryRegisterMouseAndGetDeviceInfoRequest,
responder: RegistryRegisterMouseAndGetDeviceInfoResponder,
},
}
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.
RegisterTouchScreenAndGetDeviceInfo
Enables the client to inject touch events using the corresponding
client end to device
. Returns device_id of the created 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.
Fields
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
RegisterMediaButtonsDeviceAndGetDeviceInfo
Enables the client to inject media buttons events using the
corresponding client end to device
. Returns device_id of the created 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
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.
RegisterKeyboardAndGetDeviceInfo
Enables the client to inject keyboard events using the corresponding
client end to device
. Returns device_id of the created 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.
Fields
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.
RegisterMouseAndGetDeviceInfo
Enables the client to inject mouse events using the corresponding
client end to device
. Returns device_id of the created 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.
Fields
Implementations§
Source§impl RegistryRequest
impl RegistryRequest
pub fn into_register_touch_screen( self, ) -> Option<(RegistryRegisterTouchScreenRequest, RegistryRegisterTouchScreenResponder)>
pub fn into_register_touch_screen_and_get_device_info( self, ) -> Option<(RegistryRegisterTouchScreenAndGetDeviceInfoRequest, RegistryRegisterTouchScreenAndGetDeviceInfoResponder)>
pub fn into_register_keyboard( self, ) -> Option<(RegistryRegisterKeyboardRequest, RegistryRegisterKeyboardResponder)>
pub fn into_register_keyboard_and_get_device_info( self, ) -> Option<(RegistryRegisterKeyboardAndGetDeviceInfoRequest, RegistryRegisterKeyboardAndGetDeviceInfoResponder)>
pub fn into_register_mouse( self, ) -> Option<(RegistryRegisterMouseRequest, RegistryRegisterMouseResponder)>
pub fn into_register_mouse_and_get_device_info( self, ) -> Option<(RegistryRegisterMouseAndGetDeviceInfoRequest, RegistryRegisterMouseAndGetDeviceInfoResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL