For the complete documentation index, see llms.txt. This page is also available as Markdown.

BoxRegisterInterceptor

Registers a global interceptor that can listen to global runtime events.

Method Signature

BoxRegisterInterceptor(interceptor=[any], states=[any])

Arguments

Argument
Type
Required
Description
Default

interceptor

any

true

This can be a class or a closure/lambda that will listen to global events

states

any

false

An array of events to listen to along side the points discovered in the incoming interceptor

[]

Examples

Register a global interceptor

boxRegisterInterceptor( "myInterceptor", "path.to.MyInterceptor" );
writeOutput( "registered" );

Result: registered

Last updated

Was this helpful?