wendy / com.levibostian.wendy.service / Wendy / init

init

@JvmStatic fun init(context: Context, tasksFactory: PendingTasksFactory): Wendy

Initialize Wendy. It's recommended to do this in your Application class of your app.

This function essentially just creates a singleton instance of Wendy for your application to share. Future calls to this function will be ignored. The instance is only initialized once.

Parameters

context - Android context (usually given in your Application class's onCreate() call)

tasksFactory - PendingTasksFactory instance for your app to construct PendingTask instances used by Wendy.