-
Notifications
You must be signed in to change notification settings - Fork 2
Home
枫雨 edited this page Jan 8, 2024
·
4 revisions
Welcome to the MaaFramework.Binding.CSharp wiki!
The current api version of MaaFramework is v1.4.0.
Tip
If the name of an Enum ends in the plural, it means that the Enum, with FlagsAttribute, can contain more than one kind of information through "bitwise OR" operation.
Wrapper | MaaDef |
---|---|
MaaJobStatus | MaaStatusEnum |
LoggingLevel | MaaLoggingLevelEunm |
GlobalOption | MaaGlobalOptionEnum |
ResourceOption | MaaResOptionEnum |
ControllerOption | MaaCtrlOptionEnum |
InstanceOption | MaaInstOptionEnum |
AdbControllerTypes | MaaAdbControllerTypeEnum |
DbgControllerType | MaaDbgControllerTypeEnum |
ThriftControllerType | MaaThriftControllerTypeEnum |
Win32ControllerTypes | MaaWin32ControllerTypeEnum |
Wrapper | Native API |
---|---|
IMaaJob.Status | MaaControllerStatus MaaResourceStatus MaaTaskStatus |
IMaaJob.Wait() | MaaControllerWait MaaResourceWait MaaWaitTask |
IMaaJob.SetParam() | MaaSetTaskParam |
Wrapper | Native API |
---|---|
MaaWin32Controller | MaaWin32ControllerCreate |
MaaAdbController | MaaAdbControllerCreateV2 |
MaaCustomController | MaaCustomControllerCreate |
MaaThriftController | MaaThriftControllerCreate |
MaaDbgController | MaaDbgControllerCreate |
IDisposable.Dispose() | MaaControllerDestroy |
IMaaOption.SetOption() | MaaControllerSetOption |
IMaaController.LinkStart() | MaaControllerPostConnection |
IMaaController.Click() | MaaControllerPostClick |
IMaaController.Swipe() | MaaControllerPostSwipe |
IMaaController.PressKey() | MaaControllerPostPressKey |
IMaaController.InputText() | MaaControllerPostInputText |
IMaaController.TouchDown() | MaaControllerPostTouchDown |
IMaaController.TouchMove() | MaaControllerPostTouchMove |
IMaaController.TouchUp() | MaaControllerPostTouchUp |
IMaaController.Screencap() | MaaControllerPostScreencap |
IMaaPost.SetParam() | Invalid operation. |
IMaaPost.GetStatus() | MaaControllerStatus |
IMaaPost.Wait() | MaaControllerWait |
IMaaController.LinkStop() | MaaControllerConnected |
IMaaController.GetImage() | MaaControllerGetImage |
IMaaController.Uuid | MaaControllerGetUUID |
IMaaCommon.Callback | Occurs when MaaFramework calls back. |
IMaaDisposable.IsInvalid | Indicates whether the unmanaged resources from MaaFramework are invalid. |
IMaaDisposableHandle.Handle | The MaaControllerHandle. |
IMaaDisposableHandle.SetHandleAsInvalid() | Marks a handle as no longer used. |
Wrapper | Native API |
---|---|
MaaInstance | MaaCreate |
IDisposable.Dispose() | MaaDestroy |
IMaaOption.SetOption() | MaaSetOption |
IMaaInstance.Resource | MaaBindResource MaaGetResource |
IMaaInstance.Controller | MaaBindController MaaGetController |
IMaaInstance.Initialized | MaaInited |
IMaaInstance.Register() | MaaRegisterCustomRecognizer MaaRegisterCustomAction |
IMaaInstance.Unregister() | MaaUnregisterCustomRecognizer MaaUnregisterCustomAction |
IMaaInstance.Clear() | MaaClearCustomRecognizer MaaClearCustomAction |
IMaaInstance.AppendTask() | MaaPostTask |
IMaaPost.SetParam() | MaaSetTaskParam |
IMaaPost.GetStatus() | MaaTaskStatus |
IMaaPost.Wait() | MaaWaitTask |
IMaaInstance.AllTasksFinished | MaaTaskAllFinished |
IMaaInstance.Abort() | MaaStop |
IMaaCommon.Callback | Occurs when MaaFramework calls back. |
IMaaDisposable.IsInvalid | Indicates whether the unmanaged resources from MaaFramework are invalid. |
IMaaDisposableHandle.Handle | The MaaInstanceHandle. |
IMaaDisposableHandle.SetHandleAsInvalid() | Marks a handle as no longer used. |
Wrapper | Native API |
---|---|
MaaResource | MaaResourceCreate |
IDisposable.Dispose() | MaaResourceDestroy |
IMaaResource.AppendPath() | MaaResourcePostPath |
IMaaPost.SetParam() | Invalid operation. |
IMaaPost.GetStatus() | MaaResourceStatus |
IMaaPost.Wait() | MaaResourceWait |
IMaaResource.Loaded | MaaResourceLoaded |
IMaaOption.SetOption() | MaaResourceSetOption |
IMaaResource.Hash | MaaResourceGetHash |
IMaaResource.TaskList | MaaResourceGetTaskList |
IMaaCommon.Callback | Occurs when MaaFramework calls back. |
IMaaDisposable.IsInvalid | Indicates whether the unmanaged resources from MaaFramework are invalid. |
IMaaDisposableHandle.Handle | The MaaResourceHandle. |
IMaaDisposableHandle.SetHandleAsInvalid() | Marks a handle as no longer used. |
Wrapper | Native API |
---|---|
IMaaSyncContext.Handle | The MaaSyncContextHandle. |
IMaaSyncContext.RunTask() | MaaSyncContextRunTask |
IMaaSyncContext.RunRecognizer() | MaaSyncContextRunRecognizer |
IMaaSyncContext.RunAction() | MaaSyncContextRunAction |
IMaaSyncContext.Click() | MaaSyncContextClick |
IMaaSyncContext.Swipe() | MaaSyncContextSwipe |
IMaaSyncContext.PressKey() | MaaSyncContextPressKey |
IMaaSyncContext.InputText() | MaaSyncContextInputText |
IMaaSyncContext.TouchDown() | MaaSyncContextTouchDown |
IMaaSyncContext.TouchMove() | MaaSyncContextTouchMove |
IMaaSyncContext.TouchUp() | MaaSyncContextTouchUp |
IMaaSyncContext.Screencap() | MaaSyncContextScreencap |
IMaaSyncContext.GetTaskResult() | MaaSyncContextGetTaskResult |
Wrapper | Native API |
---|---|
MaaStringBuffer | MaaCreateStringBuffer |
IDisposable.Dispose() | MaaDestroyStringBuffer |
IMaaStringBuffer.IsEmpty | MaaIsStringEmpty |
IMaaStringBuffer.Clear() | MaaClearString |
IMaaStringBuffer.GetValue() MaaStringBuffer.Get() |
MaaGetString |
IMaaStringBuffer.Size | MaaGetStringSize |
IMaaStringBuffer.SetValue() MaaStringBuffer.Set() |
MaaSetString MaaSetStringEx |
object.ToString() | MaaGetString |
IMaaDisposable.IsInvalid | Indicates whether the unmanaged resources from MaaFramework are invalid. |
IMaaDisposableHandle.Handle | The MaaStringBufferHandle. |
IMaaDisposableHandle.SetHandleAsInvalid() | Marks a handle as no longer used. |
Wrapper | Native API |
---|---|
MaaImageBuffer | MaaCreateImageBuffer |
IDisposable.Dispose() | MaaDestroyImageBuffer |
IMaaImageBuffer.IsEmpty | MaaIsImageEmpty |
IMaaImageBuffer.Clear() | MaaClearImage |
IMaaImageBuffer.Info.Width | MaaGetImageWidth |
IMaaImageBuffer.Info.Height | MaaGetImageHeight |
IMaaImageBuffer.Info.Type | MaaGetImageType |
IMaaImageBuffer.GetEncodedData() MaaImageBuffer.Get() |
MaaGetImageEncoded MaaGetImageEncodedSize |
IMaaImageBuffer.SetEncodedData() MaaImageBuffer.Set() |
MaaSetImageEncoded |
IMaaDisposable.IsInvalid | Indicates whether the unmanaged resources from MaaFramework are invalid. |
IMaaDisposableHandle.Handle | The MaaImageBufferHandle. |
IMaaDisposableHandle.SetHandleAsInvalid() | Marks a handle as no longer used. |
MaaImageBuffer.Width | MaaGetImageWidth |
MaaImageBuffer.Height | MaaGetImageHeight |
MaaImageBuffer.Type | MaaGetImageType |
MaaImageBuffer.GetRawData() | MaaGetImageRawData |
MaaImageBuffer.SetRawData() | MaaSetImageRawData |
Wrapper | Native API |
---|---|
MaaRectBuffer | MaaCreateRectBuffer |
IDisposable.Dispose() | MaaDestroyRectBuffer |
IMaaRectBuffer.X | MaaGetRectX MaaSetRectX |
IMaaRectBuffer.Y | MaaGetRectY MaaSetRectY |
IMaaRectBuffer.Width | MaaGetRectW MaaSetRectW |
IMaaRectBuffer.Height | MaaGetRectH MaaSetRectH |
IMaaRectBuffer.SetValues() MaaRectBuffer.Set() |
MaaSetRect |
IMaaRectBuffer.GetValues() MaaRectBuffer.Get() |
MaaGetRectX MaaGetRectY MaaGetRectW MaaGetRectH |
IMaaDisposable.IsInvalid | Indicates whether the unmanaged resources from MaaFramework are invalid. |
IMaaDisposableHandle.Handle | The MaaRectHandle. |
IMaaDisposableHandle.SetHandleAsInvalid() | Marks a handle as no longer used. |
Wrapper | Native API |
---|---|
MaaRpc.Start() | MaaRpcStart |
MaaRpc.Stop() | MaaRpcStop |
MaaRpc.Wait() | MaaRpcWait |
Wrapper | Native API |
---|---|
IMaaToolkit.Init() | MaaToolKitInit |
IMaaToolkit.Uninit() | MaaToolKitUninit |
IMaaToolkit.Find() | The DeviceInfo Array. |
MaaToolkit.FindDevice() | MaaToolKitFindDevice MaaToolKitFindDeviceWithAdb |
MaaToolkit.GetDeviceName() | MaaToolKitGetDeviceName |
MaaToolkit.GetDeviceAdbPath() | MaaToolKitGetDeviceAdbPath |
MaaToolkit.GetDeviceAdbSerial() | MaaToolKitGetDeviceAdbSerial |
MaaToolkit.GetDeviceAdbControllerTypes() | MaaToolKitGetDeviceAdbControllerType |
MaaToolkit.GetDeviceAdbConfig() | MaaToolKitGetDeviceAdbConfig |
MaaToolkit.FindWindow() | MaaToolKitFindWindow |
MaaToolkit.SearchWindow() | MaaToolKitSearchWindow |
MaaToolkit.GetWindow() | MaaToolKitGetWindow |
MaaToolkit.GetCursorWindow() | MaaToolKitGetCursorWindow |
MaaToolkit.RegisterCustomRecognizerExecutor() | MaaToolKitRegisterCustomRecognizerExecutor |
MaaToolkit.UnregisterCustomRecognizerExecutor() | MaaToolKitUnregisterCustomRecognizerExecutor |
MaaToolkit.RegisterCustomActionExecutor() | MaaToolKitRegisterCustomActionExecutor |
MaaToolkit.UnregisterCustomActionExecutor() | MaaToolKitUnregisterCustomActionExecutor |
Wrapper | Native API | Grpc API |
---|---|---|
IMaaUtility.Version | MaaVersion | - |
IMaaOption.SetOption() | MaaSetGlobalOption | - |
MaaUtilityGrpc.RegisterCallback() | - | acquire_id register_callback |
MaaUtilityGrpc.UnregisterCallback() | - | unregister_callback |