<!--
{
  "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/RemoteKeylessEntryAction/init(functionID:actionID:vehicleID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarKey"
    ],
    "preciseIdentifier" : "s:6CarKey24RemoteKeylessEntryActionV10functionID06actionH007vehicleH0AcA18FunctionIdentifierV_AA0fL0VSStcfc"
  },
  "title" : "init(functionID:actionID:vehicleID:)"
}
-->

# init(functionID:actionID:vehicleID:)

Creates a new action object with the specified action-specific
details and vehicle ID.

```
init(functionID: FunctionIdentifier, actionID: ActionIdentifier, vehicleID: String)
```

## Parameters

`functionID`

The vehicle-specific code that identifies the
feature to activate. For example, the vehicle might have a
specific code to access the door locks.

`actionID`

The vehicle-specific code that defines what action
to take on the vehicle feature. For example, a vehicle might have
separate actions to lock and unlock the vehicle’s doors.

`vehicleID`

The target vehicle for the action. Choose the vehicle
from one of the session’s vehicle reports. Specify the string
in the [`identifier`](/documentation/CarKey/VehicleReport/identifier) property of the corresponding report.

## Return Value

An action object with the specified information.

## Discussion

This method creates an immutable action object that you can
pass to your session’s [`perform(_:)`](/documentation/CarKey/CarKeyRemoteControlSession/perform(_:)-8ac0c)
method.

---

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)