We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019a0b8 commit 33183a1Copy full SHA for 33183a1
android/src/main/java/com/lytics/react_native/LyticsModule.kt
@@ -206,12 +206,16 @@ class LyticsModule(reactContext: ReactApplicationContext) :
206
// Personalization
207
208
@ReactMethod
209
- fun getProfile(name: String? = null, value: String? = null, promise: Promise) {
+ fun getProfile(
210
+ identifierName: String? = null,
211
+ identifierValue: String? = null,
212
+ promise: Promise
213
+ ) {
214
var identifier: EntityIdentifier? = null
- if (name != null && value != null) {
215
+ if (identifierName != null && identifierValue != null) {
216
identifier = EntityIdentifier(
- name = name,
- value = value
217
+ name = identifierName,
218
+ value = identifierValue
219
)
220
}
221
scope.launch {
0 commit comments