Class InputAdapter
Represents an adapter for the Input domain to simplify the command interface.
public class InputAdapter- Inheritance
- 
      
      InputAdapter
- Inherited Members
Constructors
InputAdapter(IDevToolsSession)
Initializes a new instance of the InputAdapter class.
public InputAdapter(IDevToolsSession session)Parameters
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }Property Value
Methods
CancelDragging(CancelDraggingCommandSettings?, CancellationToken, int?, bool)
cancelDragging
public Task<CancelDraggingCommandResponse?> CancelDragging(CancelDraggingCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCancelDraggingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
DispatchDragEvent(DispatchDragEventCommandSettings, CancellationToken, int?, bool)
dispatchDragEvent
public Task<DispatchDragEventCommandResponse?> DispatchDragEvent(DispatchDragEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDispatchDragEventCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
DispatchKeyEvent(DispatchKeyEventCommandSettings, CancellationToken, int?, bool)
dispatchKeyEvent
public Task<DispatchKeyEventCommandResponse?> DispatchKeyEvent(DispatchKeyEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDispatchKeyEventCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
DispatchMouseEvent(DispatchMouseEventCommandSettings, CancellationToken, int?, bool)
dispatchMouseEvent
public Task<DispatchMouseEventCommandResponse?> DispatchMouseEvent(DispatchMouseEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDispatchMouseEventCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
DispatchTouchEvent(DispatchTouchEventCommandSettings, CancellationToken, int?, bool)
dispatchTouchEvent
public Task<DispatchTouchEventCommandResponse?> DispatchTouchEvent(DispatchTouchEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDispatchTouchEventCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
EmulateTouchFromMouseEvent(EmulateTouchFromMouseEventCommandSettings, CancellationToken, int?, bool)
emulateTouchFromMouseEvent
public Task<EmulateTouchFromMouseEventCommandResponse?> EmulateTouchFromMouseEvent(EmulateTouchFromMouseEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEmulateTouchFromMouseEventCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
ImeSetComposition(ImeSetCompositionCommandSettings, CancellationToken, int?, bool)
imeSetComposition
public Task<ImeSetCompositionCommandResponse?> ImeSetComposition(ImeSetCompositionCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandImeSetCompositionCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
InsertText(InsertTextCommandSettings, CancellationToken, int?, bool)
insertText
public Task<InsertTextCommandResponse?> InsertText(InsertTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandInsertTextCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetIgnoreInputEvents(SetIgnoreInputEventsCommandSettings, CancellationToken, int?, bool)
setIgnoreInputEvents
public Task<SetIgnoreInputEventsCommandResponse?> SetIgnoreInputEvents(SetIgnoreInputEventsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetIgnoreInputEventsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetInterceptDrags(SetInterceptDragsCommandSettings, CancellationToken, int?, bool)
setInterceptDrags
public Task<SetInterceptDragsCommandResponse?> SetInterceptDrags(SetInterceptDragsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetInterceptDragsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SynthesizePinchGesture(SynthesizePinchGestureCommandSettings, CancellationToken, int?, bool)
synthesizePinchGesture
public Task<SynthesizePinchGestureCommandResponse?> SynthesizePinchGesture(SynthesizePinchGestureCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSynthesizePinchGestureCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SynthesizeScrollGesture(SynthesizeScrollGestureCommandSettings, CancellationToken, int?, bool)
synthesizeScrollGesture
public Task<SynthesizeScrollGestureCommandResponse?> SynthesizeScrollGesture(SynthesizeScrollGestureCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSynthesizeScrollGestureCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SynthesizeTapGesture(SynthesizeTapGestureCommandSettings, CancellationToken, int?, bool)
synthesizeTapGesture
public Task<SynthesizeTapGestureCommandResponse?> SynthesizeTapGesture(SynthesizeTapGestureCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSynthesizeTapGestureCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
DragIntercepted
dragIntercepted
public event EventHandler<DragInterceptedEventArgs>? DragIntercepted