Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation

EmergencyEvent Class Reference

Constructors

Instance Methods

Constructors

new EmergencyEvent(parameters)

Initializes an instance of EmergencyEvent.

Instance Methods

emergencyEvent.getEmergencyEventType() ⇒ EmergencyEventType

Get the EmergencyEventType

Kind: Instance method of EmergencyEvent
Returns: EmergencyEventType - the KEY_EMERGENCY_EVENT_TYPE value

emergencyEvent.getFuelCutoffStatus() ⇒ FuelCutoffStatus

Get the FuelCutoffStatus

Kind: Instance method of EmergencyEvent
Returns: FuelCutoffStatus - the KEY_FUEL_CUTOFF_STATUS value

emergencyEvent.getMaximumChangeVelocity() ⇒ Number

Get the MaximumChangeVelocity

Kind: Instance method of EmergencyEvent
Returns: Number - the KEY_MAXIMUM_CHANGE_VELOCITY value

emergencyEvent.getMultipleEvents() ⇒ VehicleDataEventStatus

Get the MultipleEvents

Kind: Instance method of EmergencyEvent
Returns: VehicleDataEventStatus - the KEY_MULTIPLE_EVENTS value

emergencyEvent.getRolloverEvent() ⇒ VehicleDataEventStatus

Get the RolloverEvent

Kind: Instance method of EmergencyEvent
Returns: VehicleDataEventStatus - the KEY_ROLLOVER_EVENT value

emergencyEvent.setEmergencyEventType(type) ⇒ EmergencyEvent

Set the EmergencyEventType

Kind: Instance method of EmergencyEvent
Returns: EmergencyEvent - The class instance for method chaining.

ParamTypeDescription
type EmergencyEventType References signal "VedsEvntType_D_Ltchd". See EmergencyEventType. - The desired EmergencyEventType.

emergencyEvent.setFuelCutoffStatus(status) ⇒ EmergencyEvent

Set the FuelCutoffStatus

Kind: Instance method of EmergencyEvent
Returns: EmergencyEvent - The class instance for method chaining.

ParamTypeDescription
status FuelCutoffStatus References signal "RCM_FuelCutoff". See FuelCutoffStatus. - The desired FuelCutoffStatus.

emergencyEvent.setMaximumChangeVelocity(velocity) ⇒ EmergencyEvent

Set the MaximumChangeVelocity

Kind: Instance method of EmergencyEvent
Returns: EmergencyEvent - The class instance for method chaining.

ParamTypeDescription
velocity Number References signal "VedsMaxDeltaV_D_Ltchd". Change in velocity in KPH. Additional reserved values: 0x00 No event 0xFE Not supported 0xFF Fault - The desired MaximumChangeVelocity. {'num_min_value': 0, 'num_max_value': 255}

emergencyEvent.setMultipleEvents(events) ⇒ EmergencyEvent

Set the MultipleEvents

Kind: Instance method of EmergencyEvent
Returns: EmergencyEvent - The class instance for method chaining.

ParamTypeDescription
events VehicleDataEventStatus References signal "VedsMultiEvnt_D_Ltchd". See VehicleDataEventStatus. - The desired MultipleEvents.

emergencyEvent.setRolloverEvent(event) ⇒ EmergencyEvent

Set the RolloverEvent

Kind: Instance method of EmergencyEvent
Returns: EmergencyEvent - The class instance for method chaining.

ParamTypeDescription
event VehicleDataEventStatus References signal "VedsEvntRoll_D_Ltchd". See VehicleDataEventStatus. - The desired RolloverEvent.
View on GitHub.com