Border

class Border


Defines the border for a TV component.

Summary

Public companion properties

Border

Signifies the absence of a border.

Public constructors

Border(border: BorderStroke, inset: Dp, shape: Shape)

Public functions

Border
copy(border: BorderStroke?, inset: Dp?, shape: Shape?)
open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

BorderStroke

configures the width and brush for the border

Dp

defines how far (in dp) should the border be from the component it's applied to

Shape

defines the Shape of the border

Public companion properties

None

Added in 1.0.0
val NoneBorder

Signifies the absence of a border. Use this if you do not want to display a border indication in any of the TV Components.

Public constructors

Border

Border(
    border: BorderStroke,
    inset: Dp = 0.dp,
    shape: Shape = ShapeTokens.BorderDefaultShape
)
Parameters
border: BorderStroke

configures the width and brush for the border

inset: Dp = 0.dp

defines how far (in dp) should the border be from the component it's applied to

shape: Shape = ShapeTokens.BorderDefaultShape

defines the Shape of the border

Public functions

copy

Added in 1.0.0
fun copy(border: BorderStroke? = null, inset: Dp? = null, shape: Shape? = null): Border

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

border

Added in 1.0.0
val borderBorderStroke

configures the width and brush for the border

inset

Added in 1.0.0
val insetDp

defines how far (in dp) should the border be from the component it's applied to

shape

Added in 1.0.0
val shapeShape

defines the Shape of the border