toggle menu
Android-IMLibCore-SDK
5.12.0
io.rong.message
switch theme
search in API
Android-IMLibCore-SDK
/
io.rong.message
/
HQVoiceMessage
HQVoice
Message
io.rong.message
public
class
HQVoiceMessage
高清语音消息类
高清语音消息类,此消息会进行存储并计入未读消息数。
Members
Constructors
HQVoice
Message
Link copied to clipboard
io.rong.message
public
void
HQVoiceMessage
(
Array
<
byte
>
data
)
public
void
HQVoiceMessage
(
Parcel in
)
构造函数。
Properties
CREATOR
Link copied to clipboard
io.rong.message
public
final
static
Creator<HQVoiceMessage>
CREATOR
读取接口,目的是要从 Parcel 中构造一个实现了 Parcelable 的类的实例处理。
Functions
describe
Contents
Link copied to clipboard
io.rong.message
public
int
describeContents
(
)
encode
Link copied to clipboard
io.rong.message
public
Array
<
byte
>
encode
(
)
将本地消息对象序列化为消息数据。
get
Duration
Link copied to clipboard
io.rong.message
public
int
getDuration
(
)
获取语音消息的时长,以秒为单位。
get
File
Url
Link copied to clipboard
io.rong.message
public
Uri
getFileUrl
(
)
获取高清语音消息远端下载 URL
obtain
Link copied to clipboard
io.rong.message
public
static
HQVoiceMessage
obtain
(
Uri uri
,
int duration
)
set
Duration
Link copied to clipboard
io.rong.message
public
void
setDuration
(
int duration
)
设置语音消息的时长,以秒为单位。
set
File
Url
Link copied to clipboard
io.rong.message
public
void
setFileUrl
(
Uri uri
)
设置高清语音消息远端下载 URL
write
To
Parcel
Link copied to clipboard
io.rong.message
public
void
writeToParcel
(
Parcel dest
,
int flags
)
将类的数据写入外部提供的 Parcel 中。