Files
XSnap/app/src/main/kotlin/me/rhunk/snapenhance/features/Feature.kt
2023-05-15 00:37:29 +02:00

31 lines
662 B
Kotlin

package me.rhunk.snapenhance.features
import me.rhunk.snapenhance.ModContext
abstract class Feature(
val nameKey: String,
val loadParams: Int = FeatureLoadParams.INIT_SYNC
) {
lateinit var context: ModContext
/**
* called on the main thread when the mod initialize
*/
open fun init() {}
/**
* called on a dedicated thread when the mod initialize
*/
open fun asyncInit() {}
/**
* called when the Snapchat Activity is created
*/
open fun onActivityCreate() {}
/**
* called on a dedicated thread when the Snapchat Activity is created
*/
open fun asyncOnActivityCreate() {}
}