arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

RequestAndReturnCommand

AnythingWorld.Voice.CommandRequester.RequestAndReturnCommand

hashtag
Declaration

private static IEnumerator RequestAndReturnCommand(string input, Action<string> ReturnAction)

hashtag
Parameters

hashtag
Description

Requests a command from a plain text input string and returns the resulting command as a JSON-formatted string.

input

Plain text command to be parsed by API.

OnSuccess

Action that will be invoked on successfully parsed and returned command, must take a string input