如何固定一捆卡 [英] How to pin a bundle of cards

查看:47
本文介绍了如何固定一捆卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过几个时间轴项目共享相同的包ID,我使用以下方法创建包封面:

With a couple of timeline items sharing the same bundle ID, I create the bundle cover with:

TimelineItem timelineCover = new TimelineItem();
timelineCover.setText("Help Options");
timelineCover.setBundleId(bundleId);
timelineCover.setNotification(new NotificationConfig().setLevel("DEFAULT"));
timelineCover.setIsBundleCover(true);
timelineCover.setIsPinned(true);
MirrorClient.insertTimelineItem(credential, timelineCover);

它到达正确捆绑在一起的时间轴,但isPinned = false.

It comes through to the timeline properly bundled but with isPinned = false.

我尝试在时间轴游乐场中将isPinned字段更新为true,但它保持为false.

I tried updating the isPinned field to true in the timeline playground but it stays false.

是否可以固定捆绑包?

推荐答案

您只能通过将捆绑软件的非封面项设置为具有菜单操作TOGGLE_PINNED来固定捆绑软件,然后用户必须轻按封面,钻入可以固定的子卡,点击该卡的固定选项,然后固定它.这样可以固定整个包,包括大卫在评论中指出的封面,即使设置为可以固定,也不能这样做,因为单击即可将其放入包中.

You can only pin a bundle by setting a non-cover item of the bundle to have the menu action TOGGLE_PINNED, and then the user has to tap on the cover, drill into a child card that can be pinned, tap it for the pin option and then pin it. This has the result of pinning the entire bundle, including the cover which as David pointed out in a comment, even when set to be able to be pinned, can't since clicking it just goes into the bundle.

其他与之相关的地方也很奇怪,与捆绑包有关,就是如果您允许用户删除捆绑包的封面,而他们确实这样做,则子级不会被删除,而是最近添加的卡片成为新封面.

Something else related in that it's also kind of weird and related to bundles, is that if you allow a user to delete the cover of a bundle, and they do, the children do not get deleted, instead the most recently added card becomes the new cover.

我认为这是一个很好的问题.谢谢丹尼尔.

I think this is a great question. Thanks for it Daniel.

这篇关于如何固定一捆卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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