Class VoiceCommandList
Definition
- Namespace:
- Tizen.Uix.VoiceControl
- Assembly:
- Tizen.Uix.VoiceControl.dll
This class represents a list of the voice commands.
C#Copypublic class VoiceCommandList
- Inheritance
-
objectVoiceCommandList
Constructors
Declaration
C#Copypublic VoiceCommandList()
Exceptions
| Type | Condition |
|---|---|
| System.OutOfMemoryException | This exception can be due to out of memory. |
| System.ArgumentException | This exception can be due to an invalid parameter. |
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
Properties
Declaration
C#Copypublic int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | Command count of the list. |
Current
Gets the current command from the command list by index. Null will be returned in case of an empty list.
Declaration
C#Copypublic VoiceCommand Current { get; }
Property Value
| Type | Description |
|---|---|
| VoiceCommand | Current command from the command list. |
Methods
Declaration
C#Copypublic void Add(VoiceCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| VoiceCommand | command | The command |
Exceptions
| Type | Condition |
|---|---|
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
| System.NullReferenceException | This will occur if the provided parameter is null. |
Declaration
C#Copypublic void First()
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | This exception can be due to list empty. |
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
Declaration
C#Copypublic IEnumerable<VoiceCommand> GetAllCommands()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><VoiceCommand> |
Exceptions
| Type | Condition |
|---|---|
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
Declaration
C#Copypublic void Last()
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | This exception can be due to list empty. |
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
Declaration
C#Copypublic void Next()
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | This exception can be due to the following reasons:
|
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
Declaration
C#Copypublic void Previous()
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | This exception can be due to the following reasons:
|
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
Declaration
C#Copypublic void Remove(VoiceCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| VoiceCommand | command | The command |
Exceptions
| Type | Condition |
|---|---|
| System.UnauthorizedAccessException | This exception can be due to permission denied. |
| System.NotSupportedException | This exception can be due to not supported. |
| System.NullReferenceException | This will occur if the provided parameter is null. |