IInAppMessageImageView

IInAppMessageImageView is a unifying interface for android.view.View implementations that hold in-app message images, defining the required radius and cropping behavior for in-app messages images.

Functions

Link copied to clipboard
abstract fun setAspectRatio(aspectRatio: Float)
Link copied to clipboard
abstract fun setCornersRadiiPx(topLeft: Float, topRight: Float, bottomLeft: Float, bottomRight: Float)

Instruct the view to use the given radii for its corners.

Link copied to clipboard
abstract fun setCornersRadiusPx(cornersRadius: Float)

Instruct the view to use the given radius for its corners.

Link copied to clipboard
abstract fun setInAppMessageImageCropType(cropType: CropType?)

Instruct the view to use android.widget.ImageView.ScaleType.CENTER_CROP or equivalent.

Link copied to clipboard
abstract fun setToHalfParentHeight(setToHalfHeight: Boolean)

Inheritors

Link copied to clipboard