Interface IComputerUseActionHandler
public interface IComputerUseActionHandler
Properties
ScreenshotPathType
ScreenshotPathType ScreenshotPathType { get; }
Property Value
Methods
OnKeyboardKeysPressedAsync(List<string>, CancellationToken)
UniTask OnKeyboardKeysPressedAsync(List<string> keys, CancellationToken ct)
Parameters
keysList<string>ctCancellationToken
Returns
- UniTask
OnKeyboardTypedAsync(string, CancellationToken)
UniTask OnKeyboardTypedAsync(string text, CancellationToken ct)
Parameters
textstringctCancellationToken
Returns
- UniTask
OnMouseClickAsync(MouseButton, Vector2, CancellationToken)
UniTask OnMouseClickAsync(MouseButton button, Vector2 position, CancellationToken ct)
Parameters
buttonMouseButtonpositionVector2ctCancellationToken
Returns
- UniTask
OnMouseDoubleClickAsync(Vector2, CancellationToken)
UniTask OnMouseDoubleClickAsync(Vector2 position, CancellationToken ct)
Parameters
positionVector2ctCancellationToken
Returns
- UniTask
OnMouseDragAsync(List<Vector2>, CancellationToken)
UniTask OnMouseDragAsync(List<Vector2> path, CancellationToken ct)
Parameters
pathList<Vector2>ctCancellationToken
Returns
- UniTask
OnMouseMoveAsync(Vector2, CancellationToken)
UniTask OnMouseMoveAsync(Vector2 position, CancellationToken ct)
Parameters
positionVector2ctCancellationToken
Returns
- UniTask
OnMouseScrollAsync(Vector2, Vector2, CancellationToken)
UniTask OnMouseScrollAsync(Vector2 position, Vector2 scroll, CancellationToken ct)
Parameters
positionVector2scrollVector2ctCancellationToken
Returns
- UniTask
OnTakeScreenshotAsync(CancellationToken)
Takes a screenshot and provides
- The uploaded file ID if ScreenshotPathType is FileId
- Your own URL if ScreenshotPathType is Url
UniTask<string> OnTakeScreenshotAsync(CancellationToken ct)
Parameters
ctCancellationToken
Returns
- UniTask<string>
OnWaitAsync(CancellationToken)
UniTask OnWaitAsync(CancellationToken ct)
Parameters
ctCancellationToken
Returns
- UniTask