Class VoiceCommandList

Definition

Namespace:
Tizen.Uix.VoiceControl
Assembly:
Tizen.Uix.VoiceControl.dll

This class represents a list of the voice commands.

C#
Copy
public class VoiceCommandList
Inheritance
object
VoiceCommandList

Constructors

View Source

VoiceCommandList()

The public constructor.

Declaration
C#
Copy
public 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

View Source

Count

Gets a command count of the list. -1 is returned in case of an internal failure.

Declaration
C#
Copy
public int Count { get; }
Property Value
Type Description
int

Command count of the list.

View Source

Current

Gets the current command from the command list by index. Null will be returned in case of an empty list.

Declaration
C#
Copy
public VoiceCommand Current { get; }
Property Value
Type Description
VoiceCommand

Current command from the command list.

Methods

View Source

Add(VoiceCommand)

Adds a command to the command list.

Declaration
C#
Copy
public 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.

View Source

First()

Moves an index to the first command.

Declaration
C#
Copy
public 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.

View Source

GetAllCommands()

Retrieves all commands from the command list.

Declaration
C#
Copy
public 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.

View Source

Last()

Moves an index to the last command.

Declaration
C#
Copy
public 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.

View Source

Next()

Moves an index to the next command.

Declaration
C#
Copy
public void Next()
Exceptions
Type Condition
System.InvalidOperationException

This exception can be due to the following reasons:

  1. List empty
  2. List reached end
System.UnauthorizedAccessException

This exception can be due to permission denied.

System.NotSupportedException

This exception can be due to not supported.

View Source

Previous()

Moves an index to the previous command.

Declaration
C#
Copy
public void Previous()
Exceptions
Type Condition
System.InvalidOperationException

This exception can be due to the following reasons:

  1. List empty
  2. List reached end
System.UnauthorizedAccessException

This exception can be due to permission denied.

System.NotSupportedException

This exception can be due to not supported.

View Source

Remove(VoiceCommand)

Removes a command from the command list.

Declaration
C#
Copy
public 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.