Class InterfaceNotifyCallback

3DS Max Plug-In SDK

Class InterfaceNotifyCallback

See Also: Class BaseInterface, Function Publishing System.

class InterfaceNotifyCallback

Description:

This class is available in release 4.0 and later only.

This class provides a callback mechanism which can be registered with an interface on Acquire() so that it can be notified when the interface goes away as the server controls the lifetime.

Methods:

public:

Prototype:

virtual void InterfaceDeleted(BaseInterface* bi);

Remarks:

This method gets called to notify the server is deleting the interface.

Parameters:

BaseInterface* bi

A pointer to the appropriate BaseInterface.

Default Implementation:

{ }

Prototype:

virtual BaseInterface* GetInterface(Interface_ID id);

Remarks:

Returns a pointer to the interface whose ID is specified, for future notification extensions.

Parameters:

Interface_ID id

The ID of the interface to return.

Return Value:

{ return NULL; }