pub struct TouchScreenProxy { /* private fields */ }
Implementations§
Source§impl TouchScreenProxy
impl TouchScreenProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.test.input/TouchScreen.
Sourcepub fn take_event_stream(&self) -> TouchScreenEventStream
pub fn take_event_stream(&self) -> TouchScreenEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn simulate_tap(
&self,
payload: &TouchScreenSimulateTapRequest,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn simulate_tap( &self, payload: &TouchScreenSimulateTapRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Simulates a tap at the requested location.
Sourcepub fn simulate_multi_tap(
&self,
payload: &TouchScreenSimulateMultiTapRequest,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn simulate_multi_tap( &self, payload: &TouchScreenSimulateMultiTapRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Simulates multi finger tap at the requested locations.
Sourcepub fn simulate_swipe(
&self,
payload: &TouchScreenSimulateSwipeRequest,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn simulate_swipe( &self, payload: &TouchScreenSimulateSwipeRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Simulates a swipe that starts at start_location
and ends at end_location
,
with a total number of move events equal to move_event_count
.
The generated pointer event stream will be:
DOWN + CHANGE_1 + … + CHANGE_n + UP, where n == move_event_count
Events are injected with no explicit delay in between; in other words, the observed delay between successive events will be approximately equal to the time required to inject a single event.
Sourcepub fn simulate_multi_finger_gesture(
&self,
payload: &TouchScreenSimulateMultiFingerGestureRequest,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn simulate_multi_finger_gesture( &self, payload: &TouchScreenSimulateMultiFingerGestureRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Simulates a multi fingers linear gesture that starts at start_locations
and ends at end_locations
, with a total number of move events equal to
move_event_count
. if the arguments are invalid, the server should close
the connection.
The generated pointer event stream will be:
DOWN + CHANGE_1 + … + CHANGE_n + UP, where n == move_event_count
Events are injected with a small explicit delay in between.
Sourcepub fn simulate_touch_event(
&self,
report: &TouchInputReport,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn simulate_touch_event( &self, report: &TouchInputReport, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Simulate a touch event by a touch input report.
TouchInputReport includes a list of contacts that are currently contacting the touch surface. The report can represent multiply touch events by comparing with previous reports received.
Trait Implementations§
Source§impl Clone for TouchScreenProxy
impl Clone for TouchScreenProxy
Source§fn clone(&self) -> TouchScreenProxy
fn clone(&self) -> TouchScreenProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TouchScreenProxy
impl Debug for TouchScreenProxy
Source§impl Proxy for TouchScreenProxy
impl Proxy for TouchScreenProxy
Source§type Protocol = TouchScreenMarker
type Protocol = TouchScreenMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl TouchScreenProxyInterface for TouchScreenProxy
impl TouchScreenProxyInterface for TouchScreenProxy
type SimulateTapResponseFut = QueryResponseFut<()>
type SimulateMultiTapResponseFut = QueryResponseFut<()>
type SimulateSwipeResponseFut = QueryResponseFut<()>
type SimulateMultiFingerGestureResponseFut = QueryResponseFut<()>
type SimulateTouchEventResponseFut = QueryResponseFut<()>
fn simulate_tap( &self, payload: &TouchScreenSimulateTapRequest, ) -> Self::SimulateTapResponseFut
fn simulate_multi_tap( &self, payload: &TouchScreenSimulateMultiTapRequest, ) -> Self::SimulateMultiTapResponseFut
fn simulate_swipe( &self, payload: &TouchScreenSimulateSwipeRequest, ) -> Self::SimulateSwipeResponseFut
fn simulate_multi_finger_gesture( &self, payload: &TouchScreenSimulateMultiFingerGestureRequest, ) -> Self::SimulateMultiFingerGestureResponseFut
fn simulate_touch_event( &self, report: &TouchInputReport, ) -> Self::SimulateTouchEventResponseFut
Auto Trait Implementations§
impl Freeze for TouchScreenProxy
impl !RefUnwindSafe for TouchScreenProxy
impl Send for TouchScreenProxy
impl Sync for TouchScreenProxy
impl Unpin for TouchScreenProxy
impl !UnwindSafe for TouchScreenProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)