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

# ActionIdentifier

A type that stores the designation code for one of
the actions that a vehicle feature supports.

```
struct ActionIdentifier
```

## Overview

An [`ActionIdentifier`](/documentation/CarKey/ActionIdentifier) type wraps a vehicle-specific code you
define. This code — known as the action identifier — corresponds
to an action your vehicle can take for a particular feature.
For example, you might define actions to lock or unlock the
vehicle’s doors. Use this type in conjunction with a specific
[`FunctionIdentifier`](/documentation/CarKey/FunctionIdentifier) type to specify the complete action you
want to perform on a vehicle.

## Topics

### Creating the Action Identifier

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

Creates and returns a new action identifier with the specified value.

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

Creates and returns a new action identifier with the specified value.

### Getting the Value

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

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

## Relationships

### Conforms To

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

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

[`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)