Affinity SDK documentation

A parameter of type “X-like Object” accepts any object with the same properties as X, such as an object literal. Where a parameter’s type is just a class name, such as Transform, it needs an instance of that class. A callback parameter lists, beneath its description, the arguments the SDK passes to the function and what the function should return.