cloudstream/app/src/main/java/com/lagradost/cloudstream3/plugins/Plugin.kt

24 lines
530 B
Kotlin
Raw Normal View History

2022-08-06 15:48:00 +00:00
package com.lagradost.cloudstream3.plugins
2022-08-04 10:51:11 +00:00
2022-08-06 15:48:00 +00:00
import android.content.Context
import android.content.res.Resources
import kotlin.Throws
2022-08-04 10:51:11 +00:00
2022-08-06 15:48:00 +00:00
abstract class Plugin {
2022-08-04 10:51:11 +00:00
/**
* Called when your Plugin is loaded
* @param context Context
*/
2022-08-06 15:48:00 +00:00
@Throws(Throwable::class)
open fun load(context: Context?) {
2022-08-04 10:51:11 +00:00
}
2022-08-06 15:48:00 +00:00
class Manifest {
var name: String? = null
var pluginClassName: String? = null
}
2022-08-04 10:51:11 +00:00
2022-08-06 15:48:00 +00:00
var resources: Resources? = null
var needsResources = false
var __filename: String? = null
2022-08-04 10:51:11 +00:00
}