RemoteTextButtonShapes

class RemoteTextButtonShapes


Represents the shapes used for RemoteTextButton in various states.

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

Summary

Public constructors

Public functions

RemoteTextButtonShapes
copy(shape: RemoteShape, pressedShape: RemoteShape)

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

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

Public properties

RemoteShape

the shape of the text button when pressed.

RemoteShape

the shape of the text button when not pressed.

Public constructors

RemoteTextButtonShapes

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

the shape of the text button when not pressed.

pressedShape: RemoteShape = shape

the shape of the text button when pressed.

Public functions

copy

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

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

Parameters
shape: RemoteShape = this.shape

the shape of the text button when not pressed.

pressedShape: RemoteShape = this.pressedShape

the shape of the text button when pressed.

Returns
RemoteTextButtonShapes

a copy of this RemoteTextButtonShapes 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 text button when pressed.

shape

Added in 1.0.0-alpha16
val shape: RemoteShape

the shape of the text button when not pressed.