Skip to content

AddPowerTuningEventListener

Navigation: ADLX SDK References → ADLX Interfaces → Power Tuning → IADLXPowerTuningChangedHandling

Registers an event listener for notifications whenever power tuning settings are changed.

Syntax

ADLX_RESULT    AddPowerTuningEventListener (IADLXPowerTuningChangedListener* pPowerTuningChangedListener)

Parameters

#DirectionNameTypeDescription
1.[in]pPowerTuningChangedListenerIADLXPowerTuningChangedListenerThe pointer to the event listener interface to register for receiving power tuning settings change notifications.

Return Value

If the event listener is successfully registered, ADLX_OK is returned.

If the event listener is not successfully registered, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

Once the event listener is successfully registered, ADLX calls the OnPowerTuningChanged listener method whenever power tuning settings are changed.

The event listener instance must exist until the application unregisters the event listener with RemovePowerTuningEventListener.

Requirements

Headerinclude “IPowerTuning.h”
Minimum version1.2

See Also: RemovePowerTuningEventListener, IADLXPowerTuningChangedListener, OnPowerTuningChanged, ADLX Enums