Events

This page covers INotifyEventHandler, INotifyEvent, IIdChangeEventHandler, and IIdChangeEvent. More specialized change-event interfaces follow the same add/remove/invoke pattern and are documented on their own domain pages.

Interfaces

Declarations are shown in Pascal and, where the SDK's generated language-support manifest lists the member for C++, in C++; the build fails if that manifest no longer matches TonCutPluginSdk.hpp. There is no C# declaration: C# plugins are native-shim-only, so a C++ shim owns every interface on this page. Methods are listed with their accessors folded into properties; open Vtable order for the exact slot sequence, and see ABI and marshalling for type sizes and ownership rules.

INotifyEventHandler

Callback sink that can be registered on the matching event interface.

IID
{4564AAF5-060B-4985-86CB-B20191FFC83C}
Parent
IUnknown
Unit
uINotifyEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
  1. procedure Invoke(aSender: IUnknown);

Methods

  • Method name
    Invoke()
    Type
    procedure
    Description

    Handle the event callback when the owning event interface invokes it.

    Declaration

    procedure Invoke(aSender: IUnknown); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.

INotifyEvent

Generic event interface following the Add, Remove, and Invoke pattern used throughout the Desktop API.

IID
{1D44C9AA-5D42-4D2B-ACC6-A5F518CC6BB6}
Parent
IUnknown
Unit
uINotifyEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
  1. procedure Add(aHandler: INotifyEventHandler);
  2. procedure Remove(aHandler: INotifyEventHandler);
  3. procedure Invoke(aSender: IUnknown);

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: INotifyEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: INotifyEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.

IIdChangeEventHandler

Callback sink consumed by the matching change-event interface.

IID
{11967711-8FDB-4FC5-9209-DEC1F2C16D83}
Parent
IUnknown
Unit
uIIdChangeEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
  1. procedure Invoke(aSender: IUnknown; aNewId, aOldId: Int64);

Methods

  • Method name
    Invoke()
    Type
    procedure
    Description

    Handle the event callback when the owning event interface invokes it.

    Declaration

    procedure Invoke(aSender: IUnknown; aNewId: Int64; aOldId: Int64); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aNewId
    Int64
    New TonCut object identifier.
    aOldId
    Int64
    Previous TonCut object identifier.

IIdChangeEvent

Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.

IID
{33DCA8E6-EE62-428A-99CA-A77403AF4B26}
Parent
IUnknown
Unit
uIIdChangeEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
  1. procedure Add(aHandler: IIdChangeEventHandler);
  2. procedure Remove(aHandler: IIdChangeEventHandler);
  3. procedure Invoke(aSender: IUnknown; aNewId, aOldId: Int64);

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: IIdChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: IIdChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the typed change event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown; aNewId: Int64; aOldId: Int64); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aNewId
    Int64
    Event payload field for new id.
    aOldId
    Int64
    Event payload field for old id.

Was this page helpful?