getLocalChange

abstract suspend fun getLocalChange(type: ResourceType, id: String): LocalChange?

Retrieve LocalChange for Resource with given type and id, which can be used to purge resource from database. Each resource will have at most one LocalChange(multiple

  • changes are squashed). If there is no local change for given resourceType and Resource.id, return null.

Return

LocalChange A squashed local changes for given resourceType and Resource.id . If there is no local change for given resourceType and Resource.id, return null.

Parameters

type
id

The resource id Resource.id

Sources

androidJvm source
Link copied to clipboard