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.

Inheritors

Functions

Link copied to clipboard
abstract fun setAltImageText(altImage: String?)

Instruct the view to set alternate text for the image to be read aloud when device is in accessibility mode.

Link copied to clipboard
abstract fun setAspectRatio(aspectRatio: Float)

Instruct the view to use the given aspect ratio for the image.

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)

Instruct the view to take up half the height of the parent view.