AsyncResourceRepository

class AsyncResourceRepository @Inject constructor(    resources: Resources?,     workContext: CoroutineContext,     locale: Locale?) : ResourceRepository

ResourceRepository that loads all resources from JSON asynchronously.

Constructors

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

Functions

Link copied to clipboard
open override fun getAddressRepository(): AddressFieldElementRepository
Link copied to clipboard
open override fun isLoaded(): Boolean
Link copied to clipboard
open suspend override fun waitUntilLoaded()

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