---
title: "trigger(state:handler:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkaccesspoint/trigger(state:handler:)"
---

# trigger(state:handler:)

Displays the Game Center dashboard in the specified state as if the player taps or presses the access point.

## Declaration

```swift
func trigger(state: GKGameCenterViewControllerState, handler: @escaping () -> Void)
```

## Parameters

- `state`: The type of content to present.
- `handler`: The block that GameKit calls after it displays the dashboard.

## Mentioned in

Adding an access point to your game

## Discussion

Discussion For games that use controllers or the Apple TV remote, you can use this method to programmatically display the dashboard.

## See Also

### Managing the access point

- [isFocused](gamekit/gkaccesspoint/isfocused.md)
- [trigger(handler:)](gamekit/gkaccesspoint/trigger(handler:).md)
- [trigger(player:handler:)](gamekit/gkaccesspoint/trigger(player:handler:).md)
- [trigger(achievementID:handler:)](gamekit/gkaccesspoint/trigger(achievementid:handler:).md)
- [trigger(leaderboardID:playerScope:timeScope:handler:)](gamekit/gkaccesspoint/trigger(leaderboardid:playerscope:timescope:handler:).md)
- [trigger(leaderboardSetID:handler:)](gamekit/gkaccesspoint/trigger(leaderboardsetid:handler:).md)
