Table of Contents

Method Register<T>

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

Register<T>(string, T)

Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

bool Register<T>(string name, T custom) where T : IMaaCustomResource

Parameters

name string

The new name that will be used to reference the custom resource.

custom T

The custom resource instance to register.

Returns

bool

true if the registration was successful; otherwise, false.

Type Parameters

T

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

Register<T>(string?)

Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

bool Register<T>(string? name = null) where T : IMaaCustomResource, new()

Parameters

name string?

The new name that will be used to reference the custom resource.

Returns

bool

true if the registration was successful; otherwise, false.

Type Parameters

T

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

Register<T>(T)

Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

bool Register<T>(T custom) where T : IMaaCustomResource

Parameters

custom T

The custom resource instance to register.

Returns

bool

true if the registration was successful; otherwise, false.

Type Parameters

T

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