Twilio:根据上次消息时间对频道进行排序 [英] Twilio : Sort Channel based on last message time

查看:29
本文介绍了Twilio:根据上次消息时间对频道进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 iPhone 应用程序中使用 Twilio 聊天 SDK.我正在尝试根据最后一条消息时间戳对所有频道列表进行排序,有什么方法可以实现吗?请提出建议.

I am using Twilio chat SDK in my iPhone application. I am trying to sort all channels list based on last message timestamp, is there any way to achieve this? Please suggest.

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

SDK 目前没有对频道进行排序的方法.最好的办法是将所有频道加载到一个数组中并自行排序.

The SDK doesn't currently have a way to sort channels. Your best bet is to load all the channels into an array and sort them yourself.

这篇关于Twilio:根据上次消息时间对频道进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆