AddPowerTuningEventListener

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

Syntax

Copied!

ADLX_RESULT     AddPowerTuningEventListener (IADLXPowerTuningChangedListener * pPowerTuningChangedListener)

Parameters

  1. [in] pPowerTuningChangedListener IADLXPowerTuningChangedListener * The 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

Header

include “IPowerTuning.h”

Minimum version

1.2