---
title: main()
framework: watchkit
role: symbol
role_heading: Type Method
path: watchkit/wkapplicationdelegate/main()
---

# main()

Provides the top-level entry point for an app.

## Declaration

```swift
@MainActor @preconcurrency static func main()
```

## Discussion

Discussion WKApplicationDelegate provides an implementation of the main() method that serves as the main entry point for your watchOS app. The system calls the main() method to launch your app; you never call it yourself. Your app can have exactly one entry point, which you mark with the @main attribute.

## See Also

### Monitoring state changes

- [Working with the watchOS app life cycle](watchkit/working-with-the-watchos-app-life-cycle.md)
- [applicationDidFinishLaunching()](watchkit/wkapplicationdelegate/applicationdidfinishlaunching().md)
- [applicationDidBecomeActive()](watchkit/wkapplicationdelegate/applicationdidbecomeactive().md)
- [applicationWillResignActive()](watchkit/wkapplicationdelegate/applicationwillresignactive().md)
- [applicationWillEnterForeground()](watchkit/wkapplicationdelegate/applicationwillenterforeground().md)
- [applicationDidEnterBackground()](watchkit/wkapplicationdelegate/applicationdidenterbackground().md)
- [deviceOrientationDidChange()](watchkit/wkapplicationdelegate/deviceorientationdidchange().md)
