<!--
{
  "availability" : [
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKExtendedRuntimeSessionDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WKExtendedRuntimeSessionDelegate"
  },
  "title" : "WKExtendedRuntimeSessionDelegate"
}
-->

# WKExtendedRuntimeSessionDelegate

A set of optional methods for monitoring an extended runtime session.

```
protocol WKExtendedRuntimeSessionDelegate : NSObjectProtocol
```

## Overview

Implement these methods to track the changes to your session’s state.

## Topics

### Monitoring State Changes

[`func extendedRuntimeSessionDidStart(WKExtendedRuntimeSession)`](/documentation/WatchKit/WKExtendedRuntimeSessionDelegate/extendedRuntimeSessionDidStart(_:))

Indicates that the session has started running.

[`func extendedRuntimeSessionWillExpire(WKExtendedRuntimeSession)`](/documentation/WatchKit/WKExtendedRuntimeSessionDelegate/extendedRuntimeSessionWillExpire(_:))

Indicates that the session is about to expire.

[`func extendedRuntimeSession(WKExtendedRuntimeSession, didInvalidateWith: WKExtendedRuntimeSessionInvalidationReason, error: (any Error)?)`](/documentation/WatchKit/WKExtendedRuntimeSessionDelegate/extendedRuntimeSession(_:didInvalidateWith:error:))

Indicates that the session has encountered an error or stopped running.

[`enum WKExtendedRuntimeSessionInvalidationReason`](/documentation/WatchKit/WKExtendedRuntimeSessionInvalidationReason)

The reasons why a session can become invalid.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)