API reference
API reference
Select your platform
No SDKs available
No versions available

TimerController Class

Represents a countdown timer.
Meta::Voice::Samples::BuiltInTimer::TimerController extends MonoBehaviour.

Overview

Data Fields

Text
logText[Get]
AudioClip []

Public Member Functions

void
Deletes the timer. It corresponds to the wit intent "wit$delete_timer"
void
CreateTimer
( string [] entityValues )
Creates a timer. It corresponds to the wit intent "wit$create_timer"
void
Displays current timer value. It corresponds to "wit$get_timer".
void
Pauses the timer. It corresponds to the wit intent "wit$pause_timer"
void
It corresponds to the wit intent "wit$resume_timer"
void
SubtractTimeTimer
( string [] entityValues )
Subtracts time from the timer. It corresponds to the wit intent "wit$subtract_time_timer".
void
AddTimeToTimer
( string [] entityValues )
Adds time to the timer. It corresponds to the wit intent "wit$add_time_timer".
double
Returns the remaining time (in sec) of the countdown timer.
string
Returns time in the format of min:sec.

Details

Fields

Text Meta.Voice.Samples.BuiltInTimer.TimerController.logText
No description available.
AudioClip [] Meta.Voice.Samples.BuiltInTimer.TimerController.timesUpSounds
No description available.

Member Functions

void Meta.Voice.Samples.BuiltInTimer.TimerController.DeleteTimer ( )
Deletes the timer. It corresponds to the wit intent "wit$delete_timer"
void Meta.Voice.Samples.BuiltInTimer.TimerController.CreateTimer
( string [] entityValues )
Creates a timer. It corresponds to the wit intent "wit$create_timer"
Parameters
entityValues
countdown in minutes.
void Meta.Voice.Samples.BuiltInTimer.TimerController.GetTimerIntent ( )
Displays current timer value. It corresponds to "wit$get_timer".
void Meta.Voice.Samples.BuiltInTimer.TimerController.PauseTimer ( )
Pauses the timer. It corresponds to the wit intent "wit$pause_timer"
void Meta.Voice.Samples.BuiltInTimer.TimerController.ResumeTimer ( )
It corresponds to the wit intent "wit$resume_timer"
void Meta.Voice.Samples.BuiltInTimer.TimerController.SubtractTimeTimer
( string [] entityValues )
Subtracts time from the timer. It corresponds to the wit intent "wit$subtract_time_timer".
Parameters
entityValues
void Meta.Voice.Samples.BuiltInTimer.TimerController.AddTimeToTimer
( string [] entityValues )
Adds time to the timer. It corresponds to the wit intent "wit$add_time_timer".
Parameters
entityValues
double Meta.Voice.Samples.BuiltInTimer.TimerController.GetRemainingTime ( )
Returns the remaining time (in sec) of the countdown timer.
Returns
string Meta.Voice.Samples.BuiltInTimer.TimerController.GetFormattedTimeFromSeconds ( )
Returns time in the format of min:sec.
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon