---
title: startEmulation()
framework: corenfc
role: symbol
role_heading: Instance Method
path: corenfc/cardsession/startemulation()
---

# startEmulation()

Start the card emulation and present a modal user interface to the person using the app.

## Declaration

```swift
func startEmulation() async throws
```

## Discussion

Discussion Set the alertMessage prior to calling this method. This method throws an error of type CardSession.Error if card emulation fails. Possible error conditions are: CardSession.Error.systemNotAvailable CardSession.Error.accessNotAccepted CardSession.Error.systemEligibilityFailed CardSession.Error.radioDisabled

## See Also

### Managing card emulation

- [CardSession.Error](corenfc/cardsession/error.md)
- [stopEmulation(status:)](corenfc/cardsession/stopemulation(status:).md)
- [CardSession.EmulationUIStatus](corenfc/cardsession/emulationuistatus.md)
- [isEmulationInProgress](corenfc/cardsession/isemulationinprogress.md)
