rememberMediaQueryAsState

@Composable
fun rememberMediaQueryAsState(query: String): State<Boolean>(source)

Returns a State object representing whether the given media query matches the current screen.

Return

A State holding true if the query matches, false otherwise.

Parameters

query

A string representing the media query.