---
title: FunctionStatus
framework: CarKey
role: symbol
role_heading: Structure
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, macOS 13.3+, watchOS 9.0+]
path: carkey/functionstatus
---

# FunctionStatus

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

## Declaration

```swift
struct FunctionStatus
```

## Overview

Overview A 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:)](carkey/functionstatus/init(rawvalue:).md)
- [init(_:)](carkey/functionstatus/init(_:).md)

### Getting the Value

- [rawValue](carkey/functionstatus/rawvalue.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)

## See Also

### Getting the Vehicle’s Supported Functions

- [supportedFunctions](carkey/vehiclereport/supportedfunctions.md)
- [status(for:)](carkey/vehiclereport/status(for:).md)
