Firebase Kotlin SDK
Toggle table of contents
3.0.0-beta1
android
common
nonAndroid
Platform filter
android
common
nonAndroid
Switch theme
Search in API
Firebase Kotlin SDK
firebase-messaging
/
com.google.firebase.messaging
/
RemoteMessage
/
Builder
/
addData
add
Data
android
common
nonAndroid
actual
fun
addData
(
key
:
String
,
value
:
String
?
)
:
RemoteMessage.Builder
(
source
)
expect
fun
addData
(
key
:
String
,
value
:
String
?
)
:
RemoteMessage.Builder
(
source
)
Adds a data entry; a null
value
removes the key.
actual
fun
addData
(
key
:
String
,
value
:
String
?
)
:
RemoteMessage.Builder
(
source
)