wendy / com.levibostian.wendy.service / PendingTasksFactory

PendingTasksFactory

interface PendingTasksFactory

Wendy requires that you create a subclass of PendingTasksFactory and provide it to Wendy in the Wendy.Companion.init call. Do this in your Application's onCreate() call if you can.

This class exists as a map for Wendy to map the tag's of each of your PendingTask subclasses with each of your PendingTask subclasses. It's annoying to have to provide this, yes, but it works for now.

I would like to remove the need of this class in the future. Check out the issue progress here.

Functions

getTask

abstract fun getTask(tag: String): PendingTask?

Wendy will provide a tag, you provide a blank PendingTask for that specific tag.