Google Realtime API - 谷歌驱动器中快捷方式文件的作用是什么? [英] Google Realtime API - what is the role of a shortcut file in google drive?
问题描述
在快速启动演示中,会在 Google Drive 中创建一个快捷方式文件.我认为这个快捷方式文件以某种方式促进了消息的传输.有人可以解释这个快捷方式文件指向的位置以及它在实时协作流程中的用途吗?
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_filehttps://developers.google.com/drive/realtime/models-files
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 - 谷歌驱动器中快捷方式文件的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!