<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.3.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarKey",
  "identifier" : "/documentation/CarKey/VehicleReport/status(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarKey"
    ],
    "preciseIdentifier" : "s:6CarKey13VehicleReportV6status3forAA14FunctionStatusVSgAA0G10IdentifierV_tKF"
  },
  "title" : "status(for:)"
}
-->

# status(for:)

Returns the current status of the specified vehicle function.

```
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 [`supportedFunctions`](/documentation/CarKey/VehicleReport/supportedFunctions) property.

## Return Value

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)