---
title: "advertiserAssistantWillPresentInvitation(_:)"
framework: multipeerconnectivity
role: symbol
role_heading: Instance Method
path: "multipeerconnectivity/mcadvertiserassistantdelegate/advertiserassistantwillpresentinvitation(_:)"
---

# advertiserAssistantWillPresentInvitation(_:)

Indicates that the advertiser assistant is about to present an invitation to the user.

## Declaration

```swift
optional func advertiserAssistantWillPresentInvitation(_ advertiserAssistant: MCAdvertiserAssistant)
```

## Parameters

- `advertiserAssistant`: The advertiser assistant that is about to present an invitation to the user.

## Discussion

Discussion This call is intended to allow your app to prepare for an invitation that will be presented to the user. For example, your app might stop performing computationally intensive UI updates for views that will be hidden by the invitation.

## See Also

### Advertiser Assistant Delegate Methods

- [advertiserAssistantDidDismissInvitation(_:)](multipeerconnectivity/mcadvertiserassistantdelegate/advertiserassistantdiddismissinvitation(_:).md)
