向时间线发送内容时镜像API延迟 [英] Mirror API latency when sending something to a timeline

查看:103
本文介绍了向时间线发送内容时镜像API延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎有时时间表项(只是文本)会立即到达,而有时却要花很长时间……是否有办法在恰好正确的时间发送?

It seems that sometimes timeline items (just text) arrive instantly and other times they take forever... Is there a way to send one at precisely the right time?

推荐答案

您可以在准确的时间发送通知.

You can send the notification at a precise time.

timelineItem.getNotification()
  .setDeliveryTime(new DateTime(oneMinuteInFuture.getTime()));

这是一个Java示例,其中oneMinuteInFuture是设置为现在一分钟后的Calendar对象.

That's a java example, where oneMinuteInFuture is a Calendar object set to one minute after now.

执行此操作时,会立即将卡插入时间轴,但是通知会延迟到指定时间.因此,该卡马上就进入了,一分钟后,我听到了提示音.

What happens when you do this is the card is inserted in the timeline immediately, but the notification is delayed until the specified time. So the card goes in right away and one minute later I get a chime.

有不可接受的问题为此,您可能要加注星标并关注它,看来此功能将来可能会更改.

There is an unaccepted issue related to this at the issue tracker you might want to star and follow, it appears that this functionality might change in the future.

这篇关于向时间线发送内容时镜像API延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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