RemoteIconButtonShapes

class RemoteIconButtonShapes


Represents the shapes used for RemoteIconButton in various states.

When pressedShape differs from shape, RemoteIconButton animates to pressedShape while it is pressed. The press animation requires both shapes to be RemoteRoundedCornerShapes and the icon button to be enabled with a constant value.

Summary

Public constructors

Public functions

RemoteIconButtonShapes
copy(shape: RemoteShape, pressedShape: RemoteShape)

Returns a copy of this RemoteIconButtonShapes, optionally overriding some of the values.

open operator Boolean
equals(other: Any?)
open Int

Public properties

RemoteShape

the shape of the icon button when pressed.

RemoteShape

the shape of the icon button when not pressed.

Public constructors

RemoteIconButtonShapes

Added in 1.0.0-alpha16
RemoteIconButtonShapes(
    shape: RemoteShape,
    pressedShape: RemoteShape = shape
)
Parameters
shape: RemoteShape

the shape of the icon button when not pressed.

pressedShape: RemoteShape = shape

the shape of the icon button when pressed.

Public functions

copy

Added in 1.0.0-alpha16
fun copy(
    shape: RemoteShape = this.shape,
    pressedShape: RemoteShape = this.pressedShape
): RemoteIconButtonShapes

Returns a copy of this RemoteIconButtonShapes, optionally overriding some of the values.

Parameters
shape: RemoteShape = this.shape

the shape of the icon button when not pressed.

pressedShape: RemoteShape = this.pressedShape

the shape of the icon button when pressed.

Returns
RemoteIconButtonShapes

a copy of this RemoteIconButtonShapes with the specified values overridden

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

pressedShape

Added in 1.0.0-alpha16
val pressedShape: RemoteShape

the shape of the icon button when pressed.

shape

Added in 1.0.0-alpha16
val shape: RemoteShape

the shape of the icon button when not pressed.