<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRMediaEventType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:@E@SRMediaEventType"
  },
  "title" : "SRMediaEventType"
}
-->

# SRMediaEventType

The types of user interaction with media that the sensor tracks.

```
enum SRMediaEventType
```

## Topics

### Event types

[`case onScreen`](/documentation/SensorKit/SRMediaEventType/onScreen)

An event that occurs when the media appears on the screen.

[`case offScreen`](/documentation/SensorKit/SRMediaEventType/offScreen)

An event that occurs when the media disappears from the screen.

### Initializers

[`init?(rawValue: Int)`](/documentation/SensorKit/SRMediaEventType/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)