ios - 直接深度链接到特定的聊天或消息?
问题描述
这适用于 iOS:当我有频道 ID 和/或消息 ID 时,您建议使用什么方法从应用程序的其他地方直接深度链接到特定聊天或消息?
解决方案
我们建议使用query
函数通过 id 获取消息/频道。
// Fetch a channel by id
let query = ChannelsQuery(filter: .key("id", .equal(to: "channel-id")))
Client.shared.channels(query: query).subscribe(onNext: { (response) in
// handle response
}).disposed(by: disposeBag)
// Fetch a message by id
Client.shared.message(with: "message-id").subscribe(onNext: { (response) in
// handle response
}).disposed(by: disposeBag)
很快我们将发布 2.0,它将支持通常的回调方式。
推荐阅读
- python - 将换行符拆分为单独的键
- python - 从 Django 中的 JsonResponse 中提取字段值并将其传递给 Ajax Jquery
- javascript - 无法在reactjs中获得全屏尺寸的背景图像
- python - 如何在 python 元组中查找 2 个项目是否彼此相邻?
- java - My Array 和 Int 在其方法运行时不断重置值
- javascript - 将 winstonjs 添加到非 nodejs 应用程序
- node.js - 将nestjs项目作为Windows服务启动
- python - 我正在玩的游戏如何知道我正在运行 Python IDLE?
- windows - Hashcat 错误:检测到不受支持的 AMD HIP 运行时版本“0.0.3240”!回退到 OpenCL
- javascript - 如何获取 td 元素的更改事件然后添加新行?