acquire

fun acquire(context: Context, name: TaskProvider.ProviderName? = null): TaskProvider?

Acquires a content provider for a given task provider. The content provider will be released when the TaskProvider is closed with close.

Return

content provider for the given task provider (may be null)

Parameters

context

will be used to acquire the content provider client

name

task provider to acquire content provider for; null to try all supported providers

Throws

if the tasks provider is installed, but doesn't meet the minimum version requirement