---
title: "status(for:)"
framework: CarKey
role: symbol
role_heading: Instance Method
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, macOS 13.3+, watchOS 9.0+]
path: "carkey/vehiclereport/status(for:)"
---

# status(for:)

Returns the current status of the specified vehicle function.

## Declaration

```swift
func status(for function: FunctionIdentifier) throws -> FunctionStatus?
```

## Parameters

- `function`: The function identifier for the vehicle feature you want to check. If you specify an unknown feature, this method throws an error. For a list of the vehicle’s supported features, see the doc://com.apple.CarKey/documentation/CarKey/VehicleReport/supportedFunctions property.

## Return Value

Return Value The status of the feature, or nil if the status is currently unknown.

## Discussion

Discussion Each feature of your vehicle has one or more associated states, which you define. For example, the door locks of a vehicle might be in the locked or unlocked state. This method returns the state if it is known.

## See Also

### Getting the Vehicle’s Supported Functions

- [supportedFunctions](carkey/vehiclereport/supportedfunctions.md)
- [FunctionStatus](carkey/functionstatus.md)
