Search
Preparing search index...
The search index is not available
Easemob SDK API Reference - v4.10.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Easemob SDK API Reference - v4.10.0
Message
Message
Class Message
Hierarchy
Message
Index
Constructors
constructor
Properties
body
id
type
get
File
Url
Methods
create
Constructors
constructor
new
Message
(
type
:
MessageType
, id
?:
string
)
:
Message
Parameters
type:
MessageType
Optional
id:
string
Returns
Message
Properties
body
body
:
any
id
id
:
string
type
type
:
MessageType
Static
get
File
Url
get
File
Url
:
(
(
fileInputId
:
string
|
HTMLInputElement
)
=>
FileObj
)
= utils.getFileUrl
Type declaration
(
fileInputId
:
string
|
HTMLInputElement
)
:
FileObj
发送附件消息时,使用这个方法获取文件路径。
Parameters
fileInputId:
string
|
HTMLInputElement
Returns
FileObj
Methods
Static
create
create
(
options
:
CreateMsgType
)
:
MessageBody
创建消息。
Parameters
options:
CreateMsgType
Returns
MessageBody
Modules
ChatSDK
Chatroom
Connection
Contact
Event
Handler
Group
Local
Cache
Logger
Message
Presence
Silent
Mode
Status
Code
Thread
Translation
Types
Utils
message/audio
message/channel
message/cmd
message/combine
message/custom
message/delivery
message/file
message/img
message/location
message/read
message/text
message/video
Message
constructor
body
id
type
get
File
Url
create
Generated using
TypeDoc
发送附件消息时,使用这个方法获取文件路径。