updateBadgeBounds

open fun updateBadgeBounds(@NonNull rect: Rect, centerX: Float, centerY: Float, halfWidth: Float, halfHeight: Float)

Updates a badge's bounds using its center coordinate, halfWidth and halfHeight.

Parameters

rect

Holds rectangular coordinates of the badge's bounds.

centerX

A badge's center x coordinate.

centerY

A badge's center y coordinate.

halfWidth

Half of a badge's width.

halfHeight

Half of a badge's height.