Skip to content

Instantly share code, notes, and snippets.

@saurabharora90
Created June 14, 2020 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabharora90/b3888a261e0a3000d1ea589bac0ee230 to your computer and use it in GitHub Desktop.
Save saurabharora90/b3888a261e0a3000d1ea589bac0ee230 to your computer and use it in GitHub Desktop.
interface ModuleInitializer {
/** Initializes a module given the application Context
*
* @return A Completable if the module needs the app to wait for its setup to complete before proceeding.
* If the module setup doesn't need an asynchronous setup, then it can simply return Completable.complete()
*/
fun initialize(context: Context): Completable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment