for Role
fun <UiRole : Enum<*>, T : ImageResource<UiRole>> ImageResources<T>.forRole(uiRole: UiRole, desiredDimensions: ImageResource.Dimensions? = null, filterBy: (T) -> Boolean? = null, preferBy: (T) -> Boolean? = null): T?
Content copied to clipboard
Retrieve an image asset for the specified criteria
fun ImageResources<BrandImageResource>.forRole(uiRole: BrandUiRole, needsSpaceForText: Boolean? = null, desiredDimensions: ImageResource.Dimensions? = null, isDropoffPlace: Boolean = false, lowCapacity: Boolean = false): BrandImageResource?
Content copied to clipboard
Retrieve a brand image asset for the specified criteria