Method GetModes
GetModes()
Gets the pad modes.
Declaration
public TryOptionAsync<Modes> GetModes()
Returns
Type | Description |
---|---|
LanguageExt.TryOptionAsync<Modes> |
GetModes(String)
Gets the renderables of a given mode.
Declaration
public TryOptionAsync<Renderable> GetModes(string modeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | modeName | The mode name. |
Returns
Type | Description |
---|---|
LanguageExt.TryOptionAsync<Renderable> | The renderables. |
Remarks
Use GetModes() to get the available modes.
GetModes(String, Seq<Int32>)
Gets the renderable of the given mode and index.
Declaration
public TryOptionAsync<Renderable> GetModes(string modeName, Seq<int> renderableIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | modeName | The mode. |
LanguageExt.Seq<System.Int32> | renderableIndex | The renderable index. |
Returns
Type | Description |
---|---|
LanguageExt.TryOptionAsync<Renderable> | The rendable in case of success. |
Remarks
One use case of this function is to change the buttons.