---
title: isStopOnLockEnabled
framework: SensorKit
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: sensorkit/sracousticsettings/accessibility/backgroundsounds-swift.class/isstoponlockenabled
---

# isStopOnLockEnabled

## Declaration

```swift
var isStopOnLockEnabled: Bool { get }
```

## Discussion

Discussion Stop background sounds when iPhone is locked
