Angular service

PxlEventService source

Add / Remove event subscribers to PixLive SDK related events.

Note: You should use the plugin's directive (like pxlContextEnter) instead of using this service directly.

Methods

addListener (event, callback)

Add a new listener for the provided event type.

Parameters
NameTypeDescription
event string

The event to register for. See the cordova-plugin-PixLive plugin for more info on the event types.

callback function

The function to be called when the provided event is generated.

removeListener (event, callback)

Remove an existing listener for the provided event type.

Parameters
NameTypeDescription
event string

The event to register for. See the cordova-plugin-PixLive plugin for more info on the event types.

callback function

The function that has been passed to the addListener(event, callback) method.