{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TestArgsContentProvider

class TestArgsContentProvider


Provides access to test arguments stored as a file on external device storage. This provider supports only the query api. Use PropertyFile#buildUri(Authority) to retrieve all test arguments. To retrieve a specific argument, build the URI with the arg name as path by calling PropertyFile#buildUri(Authority, String).

Summary

Public constructors

Public functions

Int
delete(arg0: Uri, arg1: String, arg2: Array<String>)
String
getType(arg0: Uri)
Uri
insert(arg0: Uri, arg1: ContentValues)
Boolean
Cursor
query(
    uri: Uri,
    projection: Array<String>,
    selection: String,
    selectionArgs: Array<String>,
    sortOrder: String
)
Int
update(arg0: Uri, arg1: ContentValues, arg2: String, arg3: Array<String>)

Public constructors

TestArgsContentProvider

TestArgsContentProvider()

Public functions

delete

fun delete(arg0: Uri, arg1: String, arg2: Array<String>): Int

getType

fun getType(arg0: Uri): String

insert

fun insert(arg0: Uri, arg1: ContentValues): Uri

onCreate

fun onCreate(): Boolean

query

fun query(
    uri: Uri,
    projection: Array<String>,
    selection: String,
    selectionArgs: Array<String>,
    sortOrder: String
): Cursor

update

fun update(arg0: Uri, arg1: ContentValues, arg2: String, arg3: Array<String>): Int