forRole

fun <UiRole : Enum<*>, T : ImageResource<UiRole>> ImageResources<T>.forRole(uiRole: UiRole, desiredDimensions: ImageResource.Dimensions? = null, filterBy: (T) -> Boolean? = null, preferBy: (T) -> Boolean? = null): T?

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?

Retrieve a brand image asset for the specified criteria