new img()
img message
Returns:
message:object
Methods
set(options)
Building image message
Example
let message = New Message('img', id);
message.set({
to: 'user1',
file: file,
onFileUploadError: function(){},
onFileUploadComplete: function(){},
onFileUploadProgress: function(){},
width: '360',
height: '360',
ext: {},
chatType: 'singleChat',
success: function(){},
fail: function(){}})
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | -
Properties
|
Returns:
Void