[英]Expose 'kFirebaseServerValueTimestamp' from a iOS binding project and example to use it
I am trying to use the firebase ios sdk in a monotouch project. 我正在尝试在monotouch项目中使用firebase ios sdk。 I have a scenario where i need to set the value of a property in firebase to the firebase server timestamp.
我有一种情况,我需要将firebase中的属性值设置为firebase服务器时间戳。 Now how do i achieve the following:
现在如何实现以下目标:
It's very similar to MonoTouch Binding cannot use fields 与MonoTouch绑定不能使用字段非常相似
The answer indicates that you can expose some constants by correctly instructing the compiler. 答案表明您可以通过正确地指示编译器来公开某些常量。
But in the end, it's a constant, and as such you can hardcode it's value in your binding as well. 但是最后,它是一个常量,因此您也可以在绑定中对其进行硬编码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.