AsyncAddressResourceRepository

class AsyncAddressResourceRepository @Inject constructor(resources: Resources, workContext: CoroutineContext, locale: Locale?) : ResourceRepository<AddressRepository>

AsyncAddressResourceRepository that loads all address resources from JSON asynchronously.

Constructors

Link copied to clipboard
@Inject
fun AsyncAddressResourceRepository(resources: Resources, workContext: CoroutineContext, locale: Locale?)

Functions

Link copied to clipboard
open override fun getRepository(): AddressRepository
Link copied to clipboard
open override fun isLoaded(): Boolean
Link copied to clipboard
open suspend override fun waitUntilLoaded()

Suspend function that will wait for resource to be loaded. Must be called before trying to get any of the repositories.