countTasks

fun countTasks(where: String? = null, whereArgs: Array<String>? = null): Int

Counts the number of tasks in this task list that match the given selection criteria.

Return

The number of tasks matching the selection criteria.

Parameters

where

An optional filter declaring which rows to return.

whereArgs

Optional arguments for where.

Throws

when the content provider returns an error