BannerStyle.Builder


@RequiresCarApi(value = 9)
@ExperimentalCarApi
class BannerStyle.Builder


A builder for BannerStyle.

Summary

Public constructors

Public functions

BannerStyle

Constructs a BannerStyle from the current state of this builder.

BannerStyle.Builder

Sets the Background for the container.

BannerStyle.Builder
setShape(shape: Shape)

Sets the Shape for the container.

Public constructors

Builder

Added in 1.9.0-alpha02
Builder()

Public functions

build

Added in 1.9.0-alpha02
fun build(): BannerStyle

Constructs a BannerStyle from the current state of this builder.

Throws
java.lang.IllegalStateException

if both shape and background are null

setBackground

Added in 1.9.0-alpha02
fun setBackground(background: Background): BannerStyle.Builder

Sets the Background for the container.

background must conform to COLOR_ONLY.

Throws
java.lang.NullPointerException

if background is null

java.lang.IllegalArgumentException

if background contains unsupported type

setShape

Added in 1.9.0-alpha02
fun setShape(shape: Shape): BannerStyle.Builder

Sets the Shape for the container.

Throws
java.lang.NullPointerException

if shape is null