Convert Map to Bundle in android

前端 未结 7 2090
面向向阳花
面向向阳花 2020-12-29 17:58

Is there an easy way to convert a Map to a Bundle in android without explicit iteration?

Why?

Firebase returns a Map for Notification

相关标签:
7条回答
  • 2020-12-29 18:55

    You can use writeToParcel(Parcel out, int flags)to generate a Parcel that could be similarly useful, since it's a parent class of Bundle, and it's handily built into the Firebase framework as part of the RemoteMessage class. Documentation is here.

    0 讨论(0)
提交回复
热议问题