build

fun build(msgData: Map<String, String>): DataEvent

Builds a DataEvent instance from the data conveyed by a received Firebase RemoteMessage or a Huawei RemoteMessage.

The passed msgData is provided either by:

  • the data property (Kotlin) or getData() accessor (Java) of the Firebase RemoteMessage object.

  • or the getDataOfMap() accessor of the RemoteMessage object of the HMS Push Kit API.