Skip to content

DarkzyRB/ContextProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ContextProvider

Kotlin Android object for global applicationContext

Usage

In your Aplication class

class YourApp : Application() {

    override fun onCreate() {
        super.onCreate()

        //
        // ! Provider initialize
        ContextProvider.context = applicationContext
    }
}

Get and fun

ContextProvider.context

About

Kotlin Android object for global applicationContext

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages