Class: Omnicall Deprecated
Overview
Omnicall provides numbers that are valid phone numbers unique for every Visitor. Calling the number will automatically start an engagement for the Visitor granted there are any Operators available and they accept the engagement. When the engagement starts, audio from the Visitor's phone will be connected to the engagement and will be audible for the Operator.
Replacing more general phone numbers in the application with phone number received from a PHONE_NUMBER_AVAILABLE event will allow quickly identifying Visitors calling in for support.
Variables Summary
- EVENTS =
-
{ ENGAGEMENT_REQUEST: 'omnicall:engagement_request', PHONE_NUMBER_AVAILABLE: 'omnicall:phone_number_available' }
Instance Method Summary
- # (void) addEventListener(type, listener) Deprecated Deprecated. Omnicall module has been deprecated and will be removed
- # (void) removeEventListener(type, listener) Deprecated Deprecated. Omnicall module has been deprecated and will be removed
Instance Method Details
#
(void)
addEventListener(type, listener)
This method allows registration of event listeners on Omnicall.
If a listener is added while Omnicall is processing an event, it will be not triggered with the current event.
If multiple identical listeners are registered on the same event type the duplicate instances are discarded. They do not cause the listener to be called twice and do not need to be removed with the removeEventListener method.
#
(void)
removeEventListener(type, listener)
This method allows the removal of event listeners from Omnicall.
If an event listener is removed while Omnicall is processing an event, it will not be triggered with the current event.
An event listener is never invoked after being removed.
Calling removeEventListener with arguments which do not identify any currently registered listener has no effect.