---
title: "registerGroupActivity(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsitemprovider/registergroupactivity(_:)"
---

# registerGroupActivity(_:)

Registers a group activity instance with the specificed options.

## Declaration

```swift
@nonobjc func registerGroupActivity<ActivityType>(_ activity: ActivityType) where ActivityType : GroupActivity
```

## Parameters

- `activity`: The GroupActivity to register.

## See Also

### Registering group activities

- [registerGroupActivity(preparationHandler:)](foundation/nsitemprovider/registergroupactivity(preparationhandler:).md)
