---
title: activityType
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiactivityitemprovider/activitytype
---

# activityType

The type of the activity object that is expecting the data.

## Declaration

```swift
var activityType: UIActivity.ActivityType? { get }
```

## Discussion

Discussion The value of this property is nil until the user selects an activity. At that time, the value is set and the provider object is submitted to a queue for execution. Thus, you should access this value only after your object’s item method is called.

## See Also

### Accessing the provider attributes

- [item](uikit/uiactivityitemprovider/item.md)
- [placeholderItem](uikit/uiactivityitemprovider/placeholderitem.md)
