MPLiveBadge

open class MPLiveBadge

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getAvailabilityBadge(width: Int, height: Int, available: Boolean): Bitmap
Link copied to clipboard
open fun getBadgedAvailabilityIcon(@Nullable originalIcon: Bitmap, targetHeight: Int, targetWidth: Int, @Nullable badgePosition: MPBadgePosition, available: Boolean): Bitmap
Returns an icon with an availability badge (checkmark or cross badge).
Link copied to clipboard
open fun getFractionAsPercentageBadge(numerator: Double, denominator: Double, decimalPlaces: Int, @Nullable textPaint: TextPaint, @Nullable backgroundColor: Integer): Bitmap
Link copied to clipboard
open fun getNaturalNumericBadge(value: Int, @Nullable textPaint: TextPaint, @Nullable backgroundColor: Integer): Bitmap
Link copied to clipboard
open fun getTextBadge(text: String, @Nullable textPaint: TextPaint, @Nullable backgroundColor: Integer): Bitmap