create
fun create(context: Context, uniqueNames: List<String> = emptyList(), bufferBytes: Int = DEFAULT_BUFFER_BYTES): WorkDebugTab
Creates a WorkDebugTab.
Parameters
context
a context of the app. The tab keeps its application context, for WorkManager.getInstance.
uniqueNames
the unique work names whose work the tab labels with the name when it can't read the names from WorkManager's database. GET items?name= finds the work of any name.
bufferBytes
the most memory that the held events may take, by the size of their JSON on the heap (two bytes a character) and a fixed cost for each event. When a new event goes over it, the oldest events go.
Throws
when bufferBytes is not positive.