get Local Change
abstract suspend fun getLocalChange(type: ResourceType, id: String): LocalChange?
Content copied to clipboard
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
The ResourceType
id
The resource id Resource.id
Sources
androidJvm source
Link copied to clipboard