How do I send bundled cards all at the same time?

不羁的心 提交于 2019-12-05 05:10:18

You need to set the isBundleCover resource to true for your cover; i.e.:

timelineCover.setIsBundleCover(true);

This will make it the entry point into the bundle, and prevent it from being displayed within the bundle, as described here.

Furthermore, you can use BatchRequest to make sure they're sent together; e.g.,:

BatchRequest batch = MirrorClient.getMirror(null).batch();
BatchCallback callback = new BatchCallback();

for (TimelineItem item : items) {
        MirrorClient.getMirror(userCredential).timeline().insert(item).queue(batch, callback);
}

batch.execute();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!