Class VoiceInput
Inheritance
System.Object
VoiceInput
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: SensusAndroid.dll
public class VoiceInput : Input, INotifyPropertyChanged, IVariableDefiningInput
Constructors
Declaration
Declaration
public VoiceInput(string outputMessage)
Parameters
Type |
Name |
Description |
System.String |
outputMessage |
|
Declaration
public VoiceInput(string name, string outputMessage)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
outputMessage |
|
Properties
Declaration
public override string DefaultName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
The name of the variable in VariableValueUiProperty that this input should
define the value for. For example, if you wanted this input to supply the value for a variable
named study-name
, then set this field to study-name
and the user's selection will be used as
the value for this variable.
Declaration
[EntryStringUiProperty("Define Variable:", true, 2, false)]
public string DefinedVariable { get; set; }
Property Value
Type |
Description |
System.String |
The defined variable.
|
Declaration
public override bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Message to generate speech for when displaying this input.
Declaration
[EntryStringUiProperty("Output Message:", true, 11, true)]
public string OutputMessage { get; set; }
Property Value
Type |
Description |
System.String |
The output message.
|
Declaration
public override object Value { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
Methods
Declaration
public override View GetView(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
Xamarin.Forms.View |
|
Overrides
Declaration
public Task<string> RunAsync(Nullable<DateTimeOffset> firstRunTimestamp, Action postDisplayCallback)
Parameters
Type |
Name |
Description |
System.Nullable<System.DateTimeOffset> |
firstRunTimestamp |
|
System.Action |
postDisplayCallback |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
Declaration
protected override void SetView(View value)
Parameters
Type |
Name |
Description |
Xamarin.Forms.View |
value |
|
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged