简体   繁体   English

MIT App Inventor中的FirebaseDB值

[英]FirebaseDB values in MIT App Inventor

How to set variables to Firebase DB values in MIT App Inventor? 如何在MIT App Inventor中将变量设置为Firebase DB值?

I tried with direct setting but the blocks cant match. 我尝试了直接设置,但块无法匹配。

Because getting values from an online database like firebase is asynchronous (it can take a second to complete), you have to ask for the values you want and wait for the database to give them to you. 由于从诸如firebase之类的在线数据库获取值是异步的(可能需要一秒钟才能完成),因此您必须询问所需的值,然后等待数据库将其提供给您。 See the screenshot below for an example. 有关示例,请参见下面的屏幕截图。

It would also help if you could please edit your question to provide some more information. 如果您可以编辑问题以提供更多信息,也会有所帮助。 You could include a screenshot of your relevant blocks or describe the problem more thoroughly. 您可以包括相关块的屏幕截图,也可以更彻底地描述问题。

区块码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM