---
title: "supports(activity:location:)"
framework: workoutkit
role: symbol
role_heading: Instance Method
path: "workoutkit/workoutalert/supports(activity:location:)"
---

# supports(activity:location:)

Returns a Boolean value that indicates whether the alert supports the provided activity and location.

## Declaration

```swift
func supports(activity: HKWorkoutActivityType, location: HKWorkoutSessionLocationType) -> Bool
```

## Parameters

- `activity`: The workout’s activity type.
- `location`: The workout’s location type.
