Add3DSettingsEventListener

Registers an event listener for notifications when 3D Graphics settings change.

Syntax

Copied!

ADLX_RESULT     Add3DSettingsEventListener (IADLX3DSettingsChangedListener * p3DSettingsChangedListener)

Parameters

  1. [in] p3DSettingsChangedListener IADLX3DSettingsChangedListener * The pointer to the event listener interface to register for receiving 3D Graphics 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

After the event listener is successfully registered, ADLX will call On3DSettingsChanged method of the listener when 3D Graphics settings change.

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

Requirements

Header

include “I3DSettings.h”

Minimum version

1.0