KHWriteResponse

sealed class KHWriteResponse

Depicts the kind of response from the health store when a KHRecord is written onto it. The transaction can either Success completely, Fail completely, or Fail partially.

Inheritors

Types

Link copied to clipboard
data class Failed(val throwable: Throwable) : KHWriteResponse

Depicts that a write transaction onto the health store failed completely (i.e. no KHRecords were written).

Link copied to clipboard

Depicts that a write transaction onto the health store failed partially (i.e. some KHRecords were written).

Link copied to clipboard
data object Success : KHWriteResponse

Depicts that a write transaction onto the health store succeeded completely (i.e. all KHRecords were written).