Skip to content

Commit e87ea6d

Browse files
implemented chargedEvent for IOS
1 parent c84ad7e commit e87ea6d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/clevertap.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const CleverTapAPI = CleverTapSdk.CleverTapAPI;
88
const HashMap = java.util.HashMap;
99
const ArrayList = java.util.ArrayList;
1010
export class CleverTap extends Common implements CleverTapInterface {
11-
11+
1212
profileGetProperty(propertyName: string) {
1313
return this.instance.getProperty(propertyName);
1414
}
15-
15+
1616
public register() {
1717
CleverTapSdk.ActivityLifecycleCallback.register(utils.ad.getApplication());
1818
}

src/clevertap.ios.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ export class CleverTapImpl extends Common implements CleverTapInterface {
1515

1616
register() {
1717
throw new Error("Method not implemented.");
18-
}
19-
18+
}
19+
2020
updateProfile(profile: any) {
2121
CleverTap.sharedInstance().profilePush(profile);
2222
}
2323

2424
pushEvent(event: string, eventMeta: any) {
2525
CleverTap.sharedInstance().recordEventWithProps(event, eventMeta);
2626
}
27-
27+
2828
pushChargedEvent(chargeDetails: any, items: any) {
29-
throw new Error("Method not implemented.");
29+
CleverTap.sharedInstance().recordChargedEventWithDetailsAndItems(chargeDetails, items);
3030
}
31-
31+
3232
onUserLogin(profile: any) {
3333
CleverTap.sharedInstance().onUserLogin(profile);
3434
}
3535

36-
profileGetProperty(propertyName : string) {
36+
profileGetProperty(propertyName: string) {
3737
return CleverTap.sharedInstance().profileGet(propertyName);
3838
}
3939
}

0 commit comments

Comments
 (0)