arrow-left

All pages
gitbookPowered by GitBook
1 of 3

Loading...

Loading...

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.

RequestCommand

AnythingWorld.Voice.CommandRequester.MakeCommand

hashtag
Declaration

hashtag
Parameters

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

input

Plain text command to be parsed by API.

ReturnedCommandAction

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

hashtag
Description

Requests a command from a plain text input string and handles resulting command through CommandHandler utility.

 public static void RequestCommand(string input, Action<string> ReturnedCommandAction = null)

CommandRequester

Anythingworld.Voice.CommandRequester

hashtag
Methods

hashtag
Description

A class that handles sending plain text commands to our parsing API and then returning the parsed commands to users and handling the command.

Requests a command from a plain text input string and handles resulting command through CommandHandler utility.

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

RequestCommand
RequestAndReturnCommand