background

open fun background(value: BackgroundContext.() -> Unit)

This function opens the context for defining the background related properties for all media devices.

Example call:

background {
// some functions of [BackgroundContext] with appropriate values for *all devices*
}

Parameters

value

extension function parameter to bring the specialized topical functions of the BackgroundContext into the scope of the functional expression

open fun background(sm: BackgroundContext.() -> Unit? = null, md: BackgroundContext.() -> Unit? = null, lg: BackgroundContext.() -> Unit? = null, xl: BackgroundContext.() -> Unit? = null)

This function opens the context for defining the background related properties for each media device independently.

Example call:

background(
sm = {
// some functions of [BackgroundContext] with appropriate values for *small devices*
},
lg = {
// some functions of [BackgroundContext] with appropriate values for *large devices*
}
)

Parameters

lg

extension function parameter to bring the specialized topical functions of the BackgroundContext into the scope of the functional expression for large media devices

md

extension function parameter to bring the specialized topical functions of the BackgroundContext into the scope of the functional expression for medium sized media devices

sm

extension function parameter to bring the specialized topical functions of the BackgroundContext into the scope of the functional expression for small media devices

xl

extension function parameter to bring the specialized topical functions of the BackgroundContext into the scope of the functional expression for extra large media devices