Table of Contents

Method Clear<T>

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

Clear<T>()

Clears all MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition registered in the MaaFramework.Binding.IMaaResource.

public bool Clear<T>() where T : IMaaCustomResource

Returns

bool

true if custom actions or recognitions were cleared successfully; otherwise, false.

Type Parameters

T

The MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceClearCustomAction(System.IntPtr) and MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceClearCustomRecognition(System.IntPtr).

Clear(bool)

Clear the loaded resource paths.

public bool Clear(bool includeCustomResource = false)

Parameters

includeCustomResource bool

Returns

bool

true if the MaaFramework.Binding.IMaaResource is cleared successfully; otherwise, false.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceClear(System.IntPtr).