ViewToImage

object ViewToImage : Base<ViewToImage>

Utility class for converting views to images.

Functions

Link copied to clipboard
fun convert(    view: View,     @ColorInt backgroundColor: Int = Color.TRANSPARENT,     backgroundCornerRadius: CornerRadius = CornerRadius(0f),     trimBorders: Boolean = false,     padding: Padding = Padding(0f),     margin: Margin = Margin(0f),     viewsToExclude: ArrayList<ExcludeView> = arrayListOf()): Bitmap

Converts a view to a bitmap image.

Properties

Link copied to clipboard
var firebaseAnalyticsEnabled: Boolean

Determines if the event log in Firebase Analytics is enabled for the class instance, for the event log, the static property of the companion object firebaseAnalyticsInstance must also be assigned, if that property is null, no events will be logged, since what is required.