Google Realtime API - Google云端硬盘中的快捷方式文件的作用是什么? [英] Google Realtime API - what is the role of a shortcut file in google drive?

查看:107
本文介绍了Google Realtime API - Google云端硬盘中的快捷方式文件的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速入门演示中,Google云端硬盘会创建一个快捷方式文件。我认为这个快捷方式文件有利于消息的传递。有人可以解释这个快捷方式文件指向的位置,它是实时协作流程中的目的吗?

In the quickstart demo, a shortcut file is created in Google Drive. I figure that this shortcut file facilitates the transfer of messages somehow. Can someone explain where this shortcut file points to and it's purpose in Realtime collaboration flow?

推荐答案

快捷方式文件是显示在用户驱动器中的文件对象。它有一个指向实时数据模型的指针。它实际上并没有多大作用,它只是保存了标题,共享设置等基本信息的地方。

The shortcut file is the "file" object that shows up in the user's drive. It has a pointer to the realtime data model. It doesn't actually do much, its just the place where basic information like title, share settings, etc are saved.

您需要一些可以保存这些信息的文件对象。如果您想要将实时数据模型与单独的文件内容相关联,则可以使用该内容。否则,您将使用快捷方式文件。

You need some file object that can hold this information. If you have separate file content that you want to associate a realtime data model with, you can use that instead. Otherwise, you use a shortcut file.

有关选项的更多信息,请参阅以下页面:
https://developers.google.com/drive/realtime/application#step_4_create_or_fetch_a_google_drive_file

See these pages for some more info on the choice: https://developers.google.com/drive/realtime/application#step_4_create_or_fetch_a_google_drive_file https://developers.google.com/drive/realtime/models-files

这篇关于Google Realtime API - Google云端硬盘中的快捷方式文件的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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