Interface SubscribeInput

Hierarchy

  • SubscribeInput

Properties

callback: ((data) => void)

Type declaration

    • (data): void
    • The callback function that will be invoked when messages are received on the specified channel.

      Parameters

      • data: any

      Returns void

Any string to represent the identifier of the channel for which you want to receive notifications. You can subscribe to custom channels or EventBusCommonEvents

broadcast?: boolean

Current eitri-app will allow messages from other eitri-apps.

in iOS devices, version 15.4 or later is required to use broadcast messages. Before this version, only messages generated by the current eitri-app will be delivered to the subscriber)

Default

false
persistBetweenNavigations?: boolean

Indicates whether the listener should persist between navigations. Default is false. If set to true, the listener will continue to receive notifications even when the eitri-app navigates between screens. If set to false, the listener will be removed during navigation transitions.

Default

false

Generated using TypeDoc