9 lines
281 B
Kotlin
9 lines
281 B
Kotlin
package android.content
|
|
class Context {
|
|
var permission=true
|
|
val applicationContext get()=this
|
|
fun checkSelfPermission(name: String)=if(permission) 0 else -1
|
|
fun getSystemService(name: String)=android.view.WindowManager()
|
|
companion object {const val WINDOW_SERVICE="window"}
|
|
}
|