-
Notifications
You must be signed in to change notification settings - Fork 190
/
CallClientState.yml
174 lines (161 loc) · 5.84 KB
/
CallClientState.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
### YamlMime:TSType
name: CallClientState
uid: '@azure/communication-react.CallClientState'
package: '@azure/communication-react'
summary: >-
Container for all of the state data proxied by <xref:StatefulCallClient>. The
calls, callsEnded, incomingCalls, and
incomingCallsEnded states will be automatically provided if a callAgent has
been created. The deviceManager will be
empty initially until populated see <xref:DeviceManagerState>. The userId
state is provided as a convenience for the
developer and is completely controled and set by the developer.
fullName: CallClientState
remarks: ''
isPreview: false
isDeprecated: false
type: interface
properties:
- name: callAgent
uid: '@azure/communication-react.CallClientState.callAgent'
package: '@azure/communication-react'
summary: >-
Proxy of <xref:%40azure%2Fcommunication-calling%23CallAgent>. Please
review <xref:CallAgentState>.
fullName: callAgent
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'callAgent?: CallAgentState'
return:
type: <xref uid="@azure/communication-react.CallAgentState" />
description: ''
- name: calls
uid: '@azure/communication-react.CallClientState.calls'
package: '@azure/communication-react'
summary: >-
Proxy of <xref:%40azure%2Fcommunication-calling%23CallAgent.calls> as an
object with CallState <xref:CallState> fields.
It is keyed by <xref:%40azure%2Fcommunication-calling%23Call.id>. Please
note that
<xref:%40azure%2Fcommunication-calling%23Call.id> could change. You should
not cache the id itself but the entire
<xref:%40azure%2Fcommunication-calling%23Call> and then use the id
contained to look up data in this map.
fullName: calls
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'calls: [key: string]: CallState'
return:
type: '[key: string]\: <xref uid="@azure/communication-react.CallState" />'
description: ''
- name: callsEnded
uid: '@azure/communication-react.CallClientState.callsEnded'
package: '@azure/communication-react'
summary: >
Calls that have ended are stored here so the callEndReason could be
checked.
It is an object with <xref:%40azure%2Fcommunication-calling%23Call.id>
keys and <xref:CallState> values.
Only <xref:MAX_CALL_HISTORY_LENGTH> Calls are kept in the history. Oldest
calls are evicted if required.
fullName: callsEnded
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'callsEnded: [key: string]: CallState'
return:
type: '[key: string]\: <xref uid="@azure/communication-react.CallState" />'
description: ''
- name: deviceManager
uid: '@azure/communication-react.CallClientState.deviceManager'
package: '@azure/communication-react'
summary: >-
Proxy of <xref:%40azure%2Fcommunication-calling%23DeviceManager>. Please
review <xref:DeviceManagerState>.
fullName: deviceManager
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'deviceManager: DeviceManagerState'
return:
type: <xref uid="@azure/communication-react.DeviceManagerState" />
description: ''
- name: incomingCalls
uid: '@azure/communication-react.CallClientState.incomingCalls'
package: '@azure/communication-react'
summary: >-
Proxy of <xref:%40azure%2Fcommunication-calling%23IncomingCall> as an
object with <xref:IncomingCall> fields.
It is keyed by <xref:%40azure%2Fcommunication-calling%23IncomingCall.id>.
fullName: incomingCalls
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'incomingCalls: [key: string]: IncomingCallState'
return:
type: >-
[key: string]\: <xref
uid="@azure/communication-react.IncomingCallState" />
description: ''
- name: incomingCallsEnded
uid: '@azure/communication-react.CallClientState.incomingCallsEnded'
package: '@azure/communication-react'
summary: >
Incoming Calls that have ended are stored here so the callEndReason could
be checked.
It is an as an object with
<xref:%40azure%2Fcommunication-calling%23Call.id> keys and
<xref:IncomingCall> values.
Only <xref:MAX_CALL_HISTORY_LENGTH> Calls are kept in the history. Oldest
calls are evicted if required.
fullName: incomingCallsEnded
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'incomingCallsEnded: [key: string]: IncomingCallState'
return:
type: >-
[key: string]\: <xref
uid="@azure/communication-react.IncomingCallState" />
description: ''
- name: latestErrors
uid: '@azure/communication-react.CallClientState.latestErrors'
package: '@azure/communication-react'
summary: |
Stores the latest error for each API method.
See documentation of {@Link CallErrors} for details.
fullName: latestErrors
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'latestErrors: CallErrors'
return:
type: <xref uid="@azure/communication-react.CallErrors" />
description: ''
- name: userId
uid: '@azure/communication-react.CallClientState.userId'
package: '@azure/communication-react'
summary: >-
Stores a userId. This is not used by the <xref:StatefulCallClient> and is
provided here as a convenience for the
developer for easier access to userId. Must be passed in at initialization
of the <xref:StatefulCallClient>.
Completely controlled by the developer.
fullName: userId
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'userId: CommunicationUserKind'
return:
type: CommunicationUserKind
description: ''