<!--
{
  "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/FunctionStatus",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CarKey"
    ],
    "preciseIdentifier" : "s:6CarKey14FunctionStatusV"
  },
  "title" : "FunctionStatus"
}
-->

# FunctionStatus

A value that the vehicle can return to indicate the status of
a particular vehicle feature.

```
struct FunctionStatus
```

## Overview

A [`FunctionStatus`](/documentation/CarKey/FunctionStatus) type wraps the custom code that the vehicle
returns. You define the status codes and their meanings for your
vehicle’s features. For example, you might define status codes to
represent the locked, unlocked, and unknown states of your vehicle’s
door-locking system.

## Topics

### Creating a Function Status Type

[`init(rawValue: Int)`](/documentation/CarKey/FunctionStatus/init(rawValue:))

Creates and returns a new function status with the specified value.

[`init(Int)`](/documentation/CarKey/FunctionStatus/init(_:))

Creates and returns a new function status with the specified value.

### Getting the Value

[`let rawValue: Int`](/documentation/CarKey/FunctionStatus/rawValue)

The raw value that corresponds to the feature-specific status.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)