all
TypeScriptget all(): Promise<WebPage_CSSMediaType>Swift declarationstatic let all: WebPage.CSSMediaTypeCorresponds to the "all" media type.
struct · iOS 26.0+ · SDK 27.1
struct CSSMediaTypeA CSS media type as defined by the [CSS specification](https://www.w3.org/TR/mediaqueries-4/#media-types), or an arbitrary media type value. Media types are one of several media queries that influence the `@media` CSS at-rule; this rule is used by webpages to apply parts of a style sheet depending on the media properties specified. You can customize the media type of a ``WebPage`` by using the ``WebPage/mediaType`` property.
get all(): Promise<WebPage_CSSMediaType>Swift declarationstatic let all: WebPage.CSSMediaTypeCorresponds to the "all" media type.
get print(): Promise<WebPage_CSSMediaType>Swift declarationstatic let print: WebPage.CSSMediaTypeCorresponds to the "print" media type.
get screen(): Promise<WebPage_CSSMediaType>Swift declarationstatic let screen: WebPage.CSSMediaTypeCorresponds to the "screen" media type.
init(rawValue: string): Promise<WebPage_CSSMediaType>Swift declarationinit(rawValue: String)Create a media type with an arbitrary value. Use the static type properties for the defined canonical CSS media type options. - Parameter rawValue: The raw value of the media type.
getRawValue($self: WebPage_CSSMediaType): Promise<string>Swift declarationlet rawValue: StringThe raw value of the media type.
No declarations were skipped in this snapshot.