ktx / com.google.firebase.messaging.ktx / remoteMessage

remoteMessage

inline fun remoteMessage(    to: String,     crossinline init: Builder.() -> Unit): RemoteMessage

Returns a RemoteMessage instance initialized using the init function.