<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WirelessInsights",
  "identifier" : "/documentation/WirelessInsights/ServicePrediction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WirelessInsights"
    ],
    "preciseIdentifier" : "s:16WirelessInsights17ServicePredictionV"
  },
  "title" : "ServicePrediction"
}
-->

# ServicePrediction

An individual prediction of anticipated cellular network availability.

```
struct ServicePrediction
```

## Overview

Your app receives arrays of curent predictions from the [`servicePredictions`](/documentation/WirelessInsights/ServicePredictionProvider/servicePredictions) asynchronous sequence.
Inspect the timing and impact properties of these predictions, and the associated confidence scores, to determine if your app takes action before a possible change in cellular conditions.

## Topics

### Accessing prediction impact

[`let impact: ServicePrediction.Impact`](/documentation/WirelessInsights/ServicePrediction/impact-swift.property)

The expected impact of the predicted event.

[`enum Impact`](/documentation/WirelessInsights/ServicePrediction/Impact-swift.enum)

An enumeration of levels of impact for a predicted event.

### Accessing prediction timing

[`let predictedStartTime: Date`](/documentation/WirelessInsights/ServicePrediction/predictedStartTime)

The start time of the predicted event.

[`let predictedInterval: TimeInterval`](/documentation/WirelessInsights/ServicePrediction/predictedInterval)

The expected duration of the predicted event.

[`struct QuantizedInterval`](/documentation/WirelessInsights/ServicePrediction/QuantizedInterval)

A type that provides discrete time intervals to express the expected duration of a predicted event.

### Accessing prediction confidence

[`let confidenceScore: ServicePrediction.ConfidenceScore`](/documentation/WirelessInsights/ServicePrediction/confidenceScore-swift.property)

A score that represents the level of confidence in various aspects of the prediction.

[`struct ConfidenceScore`](/documentation/WirelessInsights/ServicePrediction/ConfidenceScore-swift.struct)

A type that represents the confidence in various aspects of the prediction.

[`enum Confidence`](/documentation/WirelessInsights/ServicePrediction/Confidence)

An enumeration of levels of confidence for a prediction or one of its properties.

### Encoding and decoding

### Hashing

### Comparing service predictions

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)