ImageBuilder

class ImageBuilder(image: Image)

Background image configurator class.

Constructors

Link copied to clipboard
fun ImageBuilder(image: Image)

Functions

Link copied to clipboard
fun build(): BackgroundImage

Return background image based on current configuration.

Properties

Link copied to clipboard
var position: BackgroundPosition? = null

The position to use. If null, defaults to BackgroundPosition.DEFAULT.

Link copied to clipboard
var repeat: BackgroundRepeat?

The repeat for the x and y axis. If null, this value defaults to BackgroundRepeat.REPEAT.

Link copied to clipboard
var repeatX: BackgroundRepeat? = null

The repeat for the x axis. If null, this value defaults to BackgroundRepeat.REPEAT.

Link copied to clipboard
var repeatY: BackgroundRepeat? = null

The repeat for the y axis. If null, this value defaults to BackgroundRepeat.REPEAT.

Link copied to clipboard
var size: BackgroundSize? = null

The size. If null, defaults to BackgroundSize.DEFAULT.