numDirectInstances

fun numDirectInstances(eventId: Long): Int?

Finds the amount of direct instances this event has (without exceptions); used by numInstances to find the number of instances of exceptions.

The number of returned instances may vary with the Android version.

Return

number of direct event instances (not counting instances of exceptions); null if the number can't be determined or if the event has no last date (recurring event without last instance)

Throws

when the content provider returns an error