proprietaryData(for:)
Retrieves the proprietary data associated with one of the vehicle’s functions.
Declaration
func proprietaryData(for function: FunctionIdentifier) throws -> Data?Parameters
- function:
The function identifier for the given vehicle feature. If you specify an unknown feature, this method throws an error. For a list of the vehicle’s supported features, see the Supportedfunctions property.
Return Value
A data object, or nil if no data was present for the specified feature.
Discussion
When it receives new data from a vehicle, the system updates the vehicle report and notifies the session delegate. Call this method to retrieve any data associated with a particular feature of your vehicle.