Class VoiceCommandList
Definition
- Namespace:
- Tizen.Uix.VoiceControl
- Assembly:
- Tizen.Uix.VoiceControl.dll
- API Level:
- 3
This class represents a list of the voice commands.
public class VoiceCommandList
- Inheritance
-
VoiceCommandList
Constructors
View SourceVoiceCommandList()
The public constructor.
Declaration
public VoiceCommandList()
Exceptions
Type | Condition |
---|---|
OutOfMemoryException | This exception can be due to out of memory. |
ArgumentException | This exception can be due to an invalid parameter. |
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
Properties
View SourceCount
Gets a command count of the list. -1 is returned in case of an internal failure.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 | Command count of the list. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
View SourceCurrent
Gets the current command from the command list by index. Null will be returned in case of an empty list.
Declaration
public VoiceCommand Current { get; }
Property Value
Type | Description |
---|---|
VoiceCommand | Current command from the command list. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Methods
View SourceAdd(VoiceCommand)
Adds a command to the command list.
Declaration
public void Add(VoiceCommand command)
Parameters
Type | Name | Description |
---|---|---|
VoiceCommand | command | The command |
Exceptions
Type | Condition |
---|---|
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
NullReferenceException | This will occur if the provided parameter is null. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
View SourceFirst()
Moves an index to the first command.
Declaration
public void First()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | This exception can be due to list empty. |
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
View SourceGetAllCommands()
Retrieves all commands from the command list.
Declaration
public IEnumerable<VoiceCommand> GetAllCommands()
Returns
Type | Description |
---|---|
IEnumerable<VoiceCommand> |
Exceptions
Type | Condition |
---|---|
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
View SourceLast()
Moves an index to the last command.
Declaration
public void Last()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | This exception can be due to list empty. |
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
View SourceNext()
Moves an index to the next command.
Declaration
public void Next()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | This exception can be due to the following reasons:
|
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
View SourcePrevious()
Moves an index to the previous command.
Declaration
public void Previous()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | This exception can be due to the following reasons:
|
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control http://tizen.org/feature/microphone
View SourceRemove(VoiceCommand)
Removes a command from the command list.
Declaration
public void Remove(VoiceCommand command)
Parameters
Type | Name | Description |
---|---|---|
VoiceCommand | command | The command |
Exceptions
Type | Condition |
---|---|
UnauthorizedAccessException | This exception can be due to permission denied. |
NotSupportedException | This exception can be due to not supported. |
NullReferenceException | This will occur if the provided parameter is null. |