onSessionSwitched event (JavaScript API reference) for Dynamics 365 Channel Integration Framework 2.0

Invoked by the client when a session is switched.

eventData

The onSessionSwitched event takes following eventData:

eventData Description
sessionId Unique identifier of the session.
focussed Indicates whether the session is in focus or not.
If the value is true it indicates that the session id returned in the payload is in focus and value false indicates that the particular session is not in focus.
context Indicates additional context.

See also

setClickToAct
addHandler
removeHandler