---
title: "screenRecorderDidChangeAvailability(_:)"
framework: replaykit
role: symbol
role_heading: Instance Method
path: "replaykit/rpscreenrecorderdelegate/screenrecorderdidchangeavailability(_:)"
---

# screenRecorderDidChangeAvailability(_:)

Indicates that the recorder has changed states between disabled and enabled.

## Declaration

```swift
optional func screenRecorderDidChangeAvailability(_ screenRecorder: RPScreenRecorder)
```

## Parameters

- `screenRecorder`: The doc://com.apple.replaykit/documentation/ReplayKit/RPScreenRecorder instance that has changed state.

## Discussion

Discussion Screen recording can be unavailable due to unsupported hardware, the user’s device displaying information over Airplay or through a TVOut session, or another app using the shared recorder.

## See Also

### Responding to Recording Changes

- [screenRecorder(_:didStopRecordingWith:error:)](replaykit/rpscreenrecorderdelegate/screenrecorder(_:didstoprecordingwith:error:).md)
- [screenRecorder(_:didStopRecordingWithError:previewViewController:)](replaykit/rpscreenrecorderdelegate/screenrecorder(_:didstoprecordingwitherror:previewviewcontroller:).md)
