---
title: capture()
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: gamecontroller/gcphysicalinputprofile/capture()
---

# capture()

Returns a snapshot of the profile with its current element values.

## Declaration

```swift
func capture() -> Self
```

## Return Value

Return Value A snapshot of the profile.

## Discussion

Discussion A snapshot is a copy of profile at a moment in time with its current element values. Unlike other profiles, you can set the values of a snapshot’s elements.

## See Also

### Setting snapshot values

- [setStateFromPhysicalInput(_:)](gamecontroller/gcphysicalinputprofile/setstatefromphysicalinput(_:).md)
