<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLSharedEventListener",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLSharedEventListener"
  },
  "title" : "MTLSharedEventListener"
}
-->

# MTLSharedEventListener

A listener for shareable event notifications.

```
class MTLSharedEventListener
```

## Topics

### Initializing a shareable event listener

[`-  init`](/documentation/Metal/MTLSharedEventListener/init())

Creates a new shareable event listener.

[`-  initWithDispatchQueue:`](/documentation/Metal/MTLSharedEventListener/init(dispatchQueue:))

Creates a new shareable event listener with a specific dispatch queue.

### Getting the dispatch queue

[`dispatchQueue`](/documentation/Metal/MTLSharedEventListener/dispatchQueue)

The dispatch queue used to dispatch any notifications.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)