Firebase远程配置getInt()丢失

问题描述 投票:6回答:1

Firebase提供以下方法:

  • getBoolean()
  • getByteArray()
  • getDouble()
  • getLong()
  • getString()

https://firebase.google.com/docs/remote-config/use-config-android#get-parametervalues-to-use-in-your-app

但是此列表中缺少getInt(),我很好奇这是否有原因吗?是使用Long或String并强制转换/转换为int的首选方法吗?

firebase firebase-remote-config
1个回答
0
投票

看起来很像iOS has it,很奇怪。

因为intlong的子集,所以应该使用它来存储整数。

© www.soinside.com 2019 - 2024. All rights reserved.