Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

ArcLayoutWidget

interface ArcLayoutWidget
androidx.wear.widget.WearArcLayout.ArcLayoutWidget

Interface for a widget which knows it is being rendered inside an arc, and will draw itself accordingly. Any widget implementing this interface will receive the full-sized canvas, pre-rotated, in its draw call.

Summary

Public methods
abstract Unit

Check whether the widget contains invalid attributes as a child of WearArcLayout

abstract Float

Returns the sweep angle that this widget is drawn with.

abstract Int

Returns the thickness of this widget inside the arc.

abstract Boolean

Return true when the given point is in the clickable area of the child widget.

Public methods

checkInvalidAttributeAsChild

abstract fun checkInvalidAttributeAsChild(): Unit

Check whether the widget contains invalid attributes as a child of WearArcLayout

getSweepAngleDegrees

abstract fun getSweepAngleDegrees(): Float

Returns the sweep angle that this widget is drawn with.

getThicknessPx

abstract fun getThicknessPx(): Int

Returns the thickness of this widget inside the arc.

insideClickArea

abstract fun insideClickArea(
    x: Float,
    y: Float
): Boolean

Return true when the given point is in the clickable area of the child widget. In particular, the coordinates should be considered as if the child was drawn centered at the default angle (12 o clock).