One Logo Pool Ball
WeatherKit · IOS API REFERENCE

UVIndex.ExposureCategory

enum · iOS 16.0+ · SDK 27.1

@frozen enum ExposureCategory

An enumeration that indicates risk of harm from unprotected sun exposure.

Members (6)

get · iOS 16.0+

rangeValue

TypeScript
getRangeValue($self: UVIndex_ExposureCategory): SDKHandle
Swift declaration
var rangeValue: ClosedRange<Int> { get }

The range of UV index values that falls into this category.

get · iOS 16.0+

description

TypeScript
getDescription($self: UVIndex_ExposureCategory): string
Swift declaration
var description: String { get }

A localized string describing the risk of harm from unprotected sun exposure.

get · iOS 16.0+

accessibilityDescription

TypeScript
getAccessibilityDescription($self: UVIndex_ExposureCategory): string
Swift declaration
var accessibilityDescription: String { get }

A localized accessibility description describing the UV Index Exposure Category. This description is suitable for Voice Over and other assistive technologies.

get · iOS 16.0+

allCases

TypeScript
get allCases(): Array<UVIndex_ExposureCategory>
Swift declaration
nonisolated static var allCases: [UVIndex.ExposureCategory] { get }

A collection of all values of this type.

init · iOS 16.0+

init

TypeScript
init(rawValue: string): (UVIndex_ExposureCategory) | null
Swift declaration
init?(rawValue: String)

Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.

get · iOS 16.0+

rawValue

TypeScript
getRawValue($self: UVIndex_ExposureCategory): string
Swift declaration
var rawValue: String { get }

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →