Skip to content

Commit e7911cc

Browse files
feat: Add Media Event Type (#176)
1 parent d1bd201 commit e7911cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

android/src/main/java/com/mparticle/react/MParticleModule.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,10 @@ private static MParticle.EventType ConvertEventType(int eventType) {
835835
return MParticle.EventType.UserPreference;
836836
case 7:
837837
return MParticle.EventType.Social;
838+
case 8:
839+
return MParticle.EventType.Other;
840+
case 9:
841+
return MParticle.EventType.Media;
838842
default:
839843
return MParticle.EventType.Other;
840844
}

js/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const EventType = {
1212
UserContent: 5,
1313
UserPreference: 6,
1414
Social: 7,
15-
Other: 8
15+
Other: 8,
16+
Media: 9
1617
}
1718

1819
const UserAttributeType = {

0 commit comments

Comments
 (0)