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.
uniqueNames
the unique work names whose work the tab labels with the name when it can't read the names from WorkManager's database.
bufferBytes
the most memory that the held events may take.
Throws
when bufferBytes is not positive.
No-op build: the tab keeps nothing, and bufferBytes is only checked, so that a value the runtime rejects fails in release too.