public class RemoteIconToggleButtonShapes(
public val uncheckedShape: RemoteShape,
public val checkedShape: RemoteShape = uncheckedShape,
public val uncheckedPressedShape: RemoteShape = uncheckedShape,
public val checkedPressedShape: RemoteShape = checkedShape,
)
Represents the shapes used for RemoteIconToggleButton in the checked and unchecked states, and while pressed.
When the checked state of RemoteIconToggleButton is not a constant, a change of shape between uncheckedShape and checkedShape is only supported when both are RemoteRoundedCornerShapes; otherwise uncheckedShape is used.
When the pressed shapes differ from the resting shapes, RemoteIconToggleButton animates to uncheckedPressedShape or checkedPressedShape while it is pressed. The press animation requires all the shapes to be RemoteRoundedCornerShapes and the toggle button to be enabled with a constant value.
Parameters
| uncheckedShape | The shape of the toggle button when unchecked. |
| checkedShape | The shape of the toggle button when checked. |
| uncheckedPressedShape | The shape of the toggle button when unchecked and pressed. |
| checkedPressedShape | The shape of the toggle button when checked and pressed. |
Functions
copy
public fun copy(
uncheckedShape: RemoteShape = this.uncheckedShape,
checkedShape: RemoteShape = this.checkedShape,
uncheckedPressedShape: RemoteShape = this.uncheckedPressedShape,
checkedPressedShape: RemoteShape = this.checkedPressedShape,
): RemoteIconToggleButtonShapes
Returns a copy of this RemoteIconToggleButtonShapes optionally overriding some of the values.
Parameters
| uncheckedShape | The shape of the toggle button when unchecked. |
| checkedShape | The shape of the toggle button when checked. |
| uncheckedPressedShape | The shape of the toggle button when unchecked and pressed. |
| checkedPressedShape | The shape of the toggle button when checked and pressed. |
Return
a copy of this RemoteIconToggleButtonShapes with the specified values overridden
equals
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int