withDrawable

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

Matches the view with given drawable

Parameters

resId

Drawable resource to match

toBitmap

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


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

Matches the view with given drawable

Parameters

drawable

Drawable to match

toBitmap

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