klaviyo-android-sdk
1.1.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0-beta
1.1.1
1.1.0
1.0.1
1.0.0
androidJvm
fixtures
/
com.klaviyo.fixtures
/
StaticClock
Static
Clock
class
StaticClock
(
var
time
:
Long
,
formatted
:
String
)
:
Clock
Implementation of Clock for unit tests
Members
Constructors
Static
Clock
Link copied to clipboard
constructor
(
time
:
Long
,
formatted
:
String
)
Types
Scheduled
Task
Link copied to clipboard
class
ScheduledTask
(
val
time
:
Long
,
val
task
:
(
)
->
Unit
)
Functions
current
Time
Millis
Link copied to clipboard
open
override
fun
currentTimeMillis
(
)
:
Long
execute
Link copied to clipboard
fun
execute
(
advance
:
Long
=
0
)
iso
Time
Link copied to clipboard
open
override
fun
isoTime
(
milliseconds
:
Long
)
:
String
schedule
Link copied to clipboard
open
override
fun
schedule
(
delay
:
Long
,
task
:
(
)
->
Unit
)
:
Clock.Cancellable
Properties
scheduled
Tasks
Link copied to clipboard
val
scheduledTasks
:
MutableList
<
StaticClock.ScheduledTask
>
time
Link copied to clipboard
var
time
:
Long