Type Alias: NablaConnectState
NablaConnectState =
object
An immutable snapshot of the encounter, as stateChanged and getCurrentState() give it.
Properties
availableActions
readonlyavailableActions: readonlyAvailableAction[]
The commands the iframe accepts right now.
canBeClosed
readonlycanBeClosed:boolean
true when closing or navigating away loses nothing.
Remarks
It does not depend on state: it is false while audio is recorded or uploaded, and
while note edits are not saved. Read it here, or wait with
NablaConnectClient.waitUntilClosable.
failureReason
readonlyfailureReason:NoteGenerationFailureReason|null
Set when reason is NOTE_GENERATION_FAILED, null otherwise.
reason
readonlyreason:NablaConnectStateReason|null
Why this state was published, null when the change came from the iframe or the provider.
state
readonlystate:EncounterState
Where the encounter is.