---
title: "checkHapticTrackAvailabilityForMedia(matchingCode:completionHandler:)"
framework: mediaaccessibility
role: symbol
role_heading: Instance Method
path: "mediaaccessibility/mamusichapticsmanager/checkhaptictrackavailabilityformedia(matchingcode:completionhandler:)"
---

# checkHapticTrackAvailabilityForMedia(matchingCode:completionHandler:)

Checks whether a haptic track is available for the song with the specified International Standard Recording Code (ISRC).

## Declaration

```swift
func checkHapticTrackAvailabilityForMedia(matchingCode internationalStandardRecordingCode: String, completionHandler: (@Sendable (Bool) -> Void)? = nil)
```

```swift
func isHapticTrackAvailable(forMediaMatching internationalStandardRecordingCode: String) async -> Bool
```
