Skip to main content

Interface: ICustomEventsService

Defined in: src/types/services.ts:274

Custom events service for cross-miniapp communication.

Remarks

Replaces useCustomEventsObserver hook from the photo editor. The subscribe method is called per miniapp and returns an unsubscribe function that the runtime invokes on miniapp teardown.

Methods

subscribe()

subscribe(miniapp): VoidFunction

Defined in: src/types/services.ts:276

Subscribe a miniapp to custom events from other miniapps

Parameters

miniapp

IMiniapp

Returns

VoidFunction