JtxCollectionProvider

Manages locally stored jtx collections (journals, notes, tasks), each represented by a JtxCollection, in the jtx Board content provider.

Parameters

account

Account that all operations are bound to

client

content provider client

Constructors

Link copied to clipboard
constructor(account: Account, client: ContentProviderClient)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Creates a new jtx collection and directly returns it.

Link copied to clipboard

Creates a new jtx collection.

Link copied to clipboard

Deletes an existing jtx collection.

Link copied to clipboard
fun findCollections(where: String? = null, whereArgs: Array<String>? = null, sortOrder: String? = null): List<JtxCollection>

Queries existing jtx collections.

Link copied to clipboard
fun findFirstCollection(where: String? = null, whereArgs: Array<String>? = null, sortOrder: String? = null): JtxCollection?

Queries existing jtx collections and returns the first one that matches the search criteria.

Link copied to clipboard

Gets an existing jtx collection by its ID.

Link copied to clipboard

Reads the collection sync state (JtxContract.JtxCollection.SYNC_VERSION field).

Link copied to clipboard

Updates an existing jtx collection.

Link copied to clipboard

Writes the collection sync state (JtxContract.JtxCollection.SYNC_VERSION field).