CongestionRange
public extension CongestionRange
-
The range for low congestion traffic. Default value is 0..39
Declaration
Swift
private(set) static var low: CongestionRange { get }
-
The range for moderate congestion traffic. Default value is 40..59
Declaration
Swift
private(set) static var moderate: CongestionRange { get }
-
The range for heavy congestion traffic. Default value is 60..79
Declaration
Swift
private(set) static var heavy: CongestionRange { get }
-
The range for severe congestion traffic. Default value is 80..100
Declaration
Swift
private(set) static var severe: CongestionRange { get }
-
Sets custom ranges of
NumericCongestionLevel
values to be aggregated into one ofCongestionLevel
cases.Ranges can’t overlap and value-wise should come in the following order: low, moderate, heavy, severe. In the case of leaving gaps between intervals, values from the gaps will be matched to
CongestionLevel.unknown
.Declaration
Swift
static func setCongestionRanges(low: CongestionRange, moderate: CongestionRange, heavy: CongestionRange, severe: CongestionRange)
-
Resets congestion ranges to their defaul values.
Declaration
Swift
static func resetCongestionRangesToDefault()