VirtualEventListener

interface VirtualEventListener

This interface can be used to listen for various events that occur inside a virtual visit.

This should primarily be used for logging purposes, as the DexCare SDK will still be presenting the virtual visit activity.

The actual visit completion events are returned in Android's onActivityResult method. When the virtual visit activity is closing down, it will return specific result codes (see VirtualService's companion object).

Functions

onDevicePairInitiated
Link copied to clipboard
abstract fun onDevicePairInitiated()
Called when a device pairing is initiated.
onVirtualVisitCancelledByUser
Link copied to clipboard
abstract fun onVirtualVisitCancelledByUser()
Called when the user cancelled the visit from the waiting room.
onVirtualVisitCompleted
Link copied to clipboard
abstract fun onVirtualVisitCompleted()
Called when a virtual visit is completed successfully.
onVirtualVisitDeclinedByProvider
Link copied to clipboard
abstract fun onVirtualVisitDeclinedByProvider()
Called when the provider declines to see the patient.
onVirtualVisitDisconnected
Link copied to clipboard
abstract fun onVirtualVisitDisconnected()
Called when the patient loses connection to the video conference session.
onVirtualVisitError
Link copied to clipboard
abstract fun onVirtualVisitError(error: VirtualVisitError)
Called when something went wrong inside the virtual visit.
onVirtualVisitReconnected
Link copied to clipboard
abstract fun onVirtualVisitReconnected()
Called when the patient loses connection to the video conference session, and the SDK begins reconnection attempts.
onVirtualVisitReconnecting
Link copied to clipboard
abstract fun onVirtualVisitReconnecting()
Called when the patient loses connection to the video conference session, and the SDK begins reconnection attempts.
onVirtualVisitStarted
Link copied to clipboard
abstract fun onVirtualVisitStarted()
Called when the Provider connects to the patient's session and starts the visit.
onWaitingRoomDisconnected
Link copied to clipboard
abstract fun onWaitingRoomDisconnected()
Called when the patient loses connection to the waiting room session.
onWaitingRoomLaunched
Link copied to clipboard
abstract fun onWaitingRoomLaunched()
Called when the virtual visit waiting room is first displayed to the user.
onWaitingRoomReconnected
Link copied to clipboard
abstract fun onWaitingRoomReconnected()
Called when the patient previously lost connection to the waiting room session, and the SDK successfully reconnected to the session.
onWaitingRoomReconnecting
Link copied to clipboard
abstract fun onWaitingRoomReconnecting()
Called when the patient loses connection to the waiting room session, and the SDK begins reconnection attempts.