鸿蒙 IMLib-v1.8.0
    Preparing search index...

    获取远端消息配置

    1.0.0

    interface IGetRemoteMsgOption {
        time: number;
        count: number;
        order: Order;
        isCheckDup: boolean;
    }
    Index

    Properties

    time: number

    毫秒时间戳 初次可以传入当前时间: Date.now() 或者传入 Conversation.lastSentTime

    如果传入 Date.now() 但是拿到的消息为空,可能是设备时间有问题,尤其可能是模拟器时间不对

    count: number

    消息个数,[1 ~ 100]

    order: Order

    获取的消息顺序

    Descending: 获取比 time 小的消息列表

    Ascending:获取比比 time 大的消息列表

    isCheckDup: boolean

    是否包含本地已存在消息

    true: 拉取回来的消息全部返回 ; false: 拉取回来的消息只返回本地数据库中不存在的