init(functionID:actionID:vehicleID:)
Creates a new action object with the specified action-specific details and vehicle ID.
Declaration
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 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(_:) method.