Skip to main content

Describes an intercepted platform operation.

Properties (5)

Property Type Default Required Description
callerId⚓︎ string x

ID of the app that has invoked the platform operation. Can be used for tracking purposes.

domain⚓︎ string x

The io.Connect API domain in which the platform operation has been intercepted.

operation⚓︎ string x

The io.Connect platform operation that has been intercepted.

operationArgs⚓︎ any[] x x

In the "before" phase, this property will contain the arguments with which the calling app has invoked the intercepted operation. In the "after" phase, this property will contain the result returned from executing the default platform implementation of the intercepted operation (or the result from the decorated operation, if the interception handler was invoked also in the "before" phase to modify the default operation).

phase⚓︎ "before" | "after" x

Specifies whether the platform operation has been intercepted before or after the execution of its default implementation.