-
Notifications
You must be signed in to change notification settings - Fork 158
/
SampleThirdStartup.kt
33 lines (26 loc) · 947 Bytes
/
SampleThirdStartup.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.rousetime.sample.startup
import android.content.Context
import android.util.Log
import com.rousetime.android_startup.AndroidStartup
import com.rousetime.android_startup.Startup
/**
* Created by idisfkj on 2020/7/24.
* Email: idisfkj@gmail.com.
*/
class SampleThirdStartup : AndroidStartup<Long>() {
override fun callCreateOnMainThread(): Boolean = false
override fun waitOnMainThread(): Boolean = false
override fun create(context: Context): Long? {
Thread.sleep(3000)
return 10L
}
override fun dependenciesByName(): List<String> {
return listOf(
"com.rousetime.sample.startup.SampleFirstStartup",
"com.rousetime.sample.startup.SampleSecondStartup"
)
}
override fun onDependenciesCompleted(startup: Startup<*>, result: Any?) {
Log.d("SampleThirdStartup", "onDependenciesCompleted: ${startup::class.java.simpleName}, $result")
}
}