hasDrawable

public Unit hasDrawable(@DrawableRes() Integer resId, Function1<Drawable, Bitmap> toBitmap)

Checks if the view displays given drawable

Parameters

resId

Drawable resource to be matched

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawable(Drawable drawable, Function1<Drawable, Bitmap> toBitmap)

Checks if the view displays given drawable

Parameters

drawable

Drawable to be matched

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)