Shape


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
class Shape


A primitive defining container shapes.

Summary

Constants

const Shape

An extra large cornered Shape instance.

const Shape

An extra small cornered Shape instance.

const Shape

A fully cornered Shape instance.

const Shape

A large cornered Shape instance.

const Shape

A medium cornered Shape instance.

const Shape

A small cornered Shape instance.

const Shape

A Shape instance with no rounding.

const Int

An extra large corner shape.

const Int

An extra small corner shape.

const Int

A full corner (pill/circle) shape.

const Int

A large corner shape.

const Int

A medium corner shape.

const Int

A small corner shape.

const Int

Represents a rectangular shape with sharp corners

Public functions

Boolean
equals(other: Any?)
Int

Returns the ShapeType of the shape.

Int
String

Constants

CORNER_EXTRA_LARGE

Added in 1.8.0
const val CORNER_EXTRA_LARGEShape

An extra large cornered Shape instance.

CORNER_EXTRA_SMALL

Added in 1.8.0
const val CORNER_EXTRA_SMALLShape

An extra small cornered Shape instance.

CORNER_FULL

Added in 1.8.0
const val CORNER_FULLShape

A fully cornered Shape instance.

CORNER_LARGE

Added in 1.8.0
const val CORNER_LARGEShape

A large cornered Shape instance.

CORNER_MEDIUM

Added in 1.8.0
const val CORNER_MEDIUMShape

A medium cornered Shape instance.

CORNER_SMALL

Added in 1.8.0
const val CORNER_SMALLShape

A small cornered Shape instance.

NONE

Added in 1.8.0
const val NONEShape

A Shape instance with no rounding.

TYPE_CORNER_EXTRA_LARGE

Added in 1.8.0
const val TYPE_CORNER_EXTRA_LARGE = 6: Int

An extra large corner shape.

TYPE_CORNER_EXTRA_SMALL

Added in 1.8.0
const val TYPE_CORNER_EXTRA_SMALL = 2: Int

An extra small corner shape.

TYPE_CORNER_FULL

Added in 1.8.0
const val TYPE_CORNER_FULL = 7: Int

A full corner (pill/circle) shape.

TYPE_CORNER_LARGE

Added in 1.8.0
const val TYPE_CORNER_LARGE = 5: Int

A large corner shape.

TYPE_CORNER_MEDIUM

Added in 1.8.0
const val TYPE_CORNER_MEDIUM = 4: Int

A medium corner shape.

TYPE_CORNER_SMALL

Added in 1.8.0
const val TYPE_CORNER_SMALL = 3: Int

A small corner shape.

TYPE_NONE

Added in 1.8.0
const val TYPE_NONE = 1: Int

Represents a rectangular shape with sharp corners

Public functions

equals

fun equals(other: Any?): Boolean

getShapeType

Added in 1.8.0
fun getShapeType(): Int

Returns the ShapeType of the shape.

hashCode

fun hashCode(): Int

toString

fun toString(): String