All constants values available in stringee-plugin
Enum | |
---|---|
Type of Call |
|
Type of Signaling state |
|
Type of Media state |
|
Type of Video quality |
|
Type of Audio device |
|
Type of Scaling |
|
Type of StringeeObject |
|
Status of StringeeObject |
|
Role of participant |
|
State of StringeeMessage |
|
Type of StringeeMessage |
|
Type of StringeeMessage notifies |
|
Type of chat request's channel |
|
Type of chat request |
|
Dimension of video track |
Class | |
---|---|
Params for make call |
|
Params for create conversation's options |
|
Represents a StringeeObject and object's status |
|
Represents a Stringee server address |
|
Represents StringeeVideoTrack's options |
|
Represents an audio device |
|
Represents a response from native |
Parameters | |
---|---|
Result params received from all methods |
Type of call
appToAppOutgoing |
Call is an outgoing app to app call |
appToAppIncoming |
Call is an incoming app to app call |
appToPhone |
Call is an app to phone call |
phoneToApp |
Call is an outgoing phone to app call |
Type of signaling state of call
calling |
Used to specify the call invite is sent to Stringee Server |
ringing |
Used to specify the callee is ringing |
answered |
Used to specify the callee answers the call |
busy |
Used to specify the callee rejects the call |
ended |
Used to specify the call is terminated |
Type of call's media state
connected |
Used to specify the call media is connected |
disconnected |
Used to specify the call media is disconnected |
Type of Video quality
normal |
The local video's quality is normal |
hd |
The local video's quality is hd |
fullHd |
The local video's quality is full hd |
Type of Audio device
speakerPhone |
Speakerphone device |
wiredHeadset |
Wired headset device |
earpiece |
Earpiece device |
bluetooth |
Bluetooth headset device |
other |
Another output audio device is connected to the device |
none |
None speaker is connected to the device |
Type of video's scaling
fit |
Stream fit in widget |
fill |
Stream fills in the widget. |
Type of objects in StringeeObjectChange
conversation |
objects is StringeeConversation |
message |
objects is StringeeMessage |
Status of StringeeObjectChange
insert |
New object is created or inserted |
update |
Object is updated |
delete |
Object is deleted |
Role of participant
admin |
StringeeUser is admin of conversation |
member |
StringeeUser is a member of conversation |
State of StringeeMessage
initialize |
Message was created to send to Stringee server |
sending |
Message is being sent to Stringee server |
sent |
Message is sent to Stringee server |
delivered |
Message is sent to other participants |
read |
The message is read by other participants |
Type of StringeeMessage
text |
Text message |
photo |
Photo message |
video |
Video message |
audio |
Audio message |
file |
File message |
link |
Link message |
createConversation |
Conversation creation notification message |
renameConversation |
Conversation rename notification message |
location |
Location message |
contact |
Contact message |
sticker |
Sticker message |
notification |
Notification message |
Type of Notification message
addParticipants |
Message notifying that the participant has been added |
removeParticipants |
Message notifying that the participant has been removed |
changeGroupName |
Message notifying that the conversation name has been changed |
Type of channel chat request
livechat |
Chat request is from livechat |
|
Chat request is from facebook |
zalo |
Chat request is from zalo |
Type of chat request
normal |
Normal chat request |
transfer |
Chat request is transferred from another user |
Dimension of video track
dimesion_1080 |
Dimension of video track is 1080 |
dimesion_720 |
Dimension of video track is 720 |
dimesion_480 |
Dimension of video track is 488 |
dimesion_288 |
Dimension of video track is 288 |
Class represents options for make a call
Constructors |
---|
MakeCallParams(String from, String to, {bool isVideoCall, Map<dynamic, dynamic> customData, VideoQuality videoQuality}) |
Properties |
---|
from → String |
It's the Caller's id |
to → String |
It's the Callee's id |
isVideoCall → bool |
Whether the call is a video call: |
customData → Map<dynamic, dynamic> |
It's custom data received from another user |
videoQuality → VideoQuality |
It's the quality of local stream |
Class represents options for create a new StringeeConversation
Constructors |
---|
StringeeConversationOption({bool isGroup, String name, bool isDistinct}) |
Properties |
---|
isGroup → bool |
Whether the conversation is a group chat: |
name → String |
It's the conversation's name |
isDistinct → bool |
Whether the conversation is distinct: |
Class represents the change of StringeeConversation and StringeeMessage
Properties |
---|
type → ChangeType |
It's a type of change |
objectType → ObjectType |
It's a type of updated object |
objects → List<dynamic> |
List of updated objects |
Class represents the Stringee server address
Constructors |
---|
StringeeServerAddress(String host, int port) |
Properties |
---|
host → String |
It's a host of server |
port → int |
It's port of server |
Class represents options of StringeeVideoTrack.
Constructors |
---|
StringeeVideoTrackOptions({required bool audio, required bool video, required bool screen, StringeeVideoDimensions videoDimension}) |
Properties |
---|
audio → bool |
Whether the video track has audio: |
video → bool |
Whether the video track has video: |
screen → bool |
Whether the video track is screen capture: |
videoDimension → StringeeVideoDimensions |
Dimension of video track |
Class represents an audio device
Properties |
---|
uuid → String? |
An identifier of audio device |
name → String? |
It's the name of audio device |
audioType → AudioType? |
It's a type of audio device |
Represents a response from native
Properties |
---|
status → bool |
Status of a result: |
code → int |
Code of Stringee error |
message → String |
Message of Stringee error |
data → dynamic |
If method executes success and returns a value, value will be put in the data |
Result params received from all methods
status → bool |
Status of a result: |
code → int |
Code of Stringee error |
message → String |
Message of Stringee error |
body → Map<dynamic, dynamic>/Object/List<Object> |
If method executes success and returns a value, value will be put in the body |
Common error:
status |
code |
message |
body |
true |
0 |
success |
null/ Map<dynamic, dynamic>/ Object/List<Object> |
false |
-1 |
StringeeClient is not initialized or disconnected |
null |
false |
-2 |
value is invalid |
null |
false |
-3 |
Object is not found |
null |
false |
-4 |
This function work only for Android |
null |