![]() | DurationFormatter Class |
Input: Single (Duration in seconds).
Output: String (Formated duration).
Namespace: Slash.Unity.DataBind.Foundation.Providers.Formatters
The DurationFormatter type exposes the following members.
Name | Description | |
---|---|---|
![]() | DurationFormatter | Initializes a new instance of the DurationFormatter class |
Name | Description | |
---|---|---|
![]() | Value |
Current data value.
(Overrides DataProviderValue.) |
Name | Description | |
---|---|---|
![]() | Deinit |
Deinitializes the operator.
By default this method removes the added bindings.
(Overrides DataBindingOperatorDeinit.) |
![]() | Init |
Initializes the operator.
This method should be used to add bindings.
(Overrides DataBindingOperatorInit.) |
![]() | UpdateValue |
Called when the value of the data provider should be updated.
(Overrides DataProviderUpdateValue.) |
Name | Description | |
---|---|---|
![]() | Argument |
Data value which contains the duration in seconds.
|
![]() | DaysSymbol |
Text to show after the days value, if shown.
|
![]() | HoursSymbol |
Text to show after the hours value, if shown.
|
![]() | MinutesSymbol |
Text to show after the minutes value, if shown.
|
![]() | SecondsSymbol |
Text to show after the seconds value, if shown.
|
![]() | TimeUnits | How many time units to show. Example: If set to two, will show hours and minutes if specified time is shorter than a day, or minutes and seconds if specified time is shorter than an hour. |