API Reference
Single entry point: RewardCenter.
Methods
Initialize()
Initialize()Initializes the SDK. Call once at app start. Not needed when integrated as a CiaoSDK module.
HandleDeepLink(string url)
HandleDeepLink(string url)Parses a deep link, extracts the campaign, and activates the Reward Center flow. Not needed when integrated as a CiaoSDK module.
ReportEvent(string eventName)
ReportEvent(string eventName)Reports a milestone event. Must match the event name in the campaign (the same one reported to your MMP for offerwall rewards). Not needed when integrated as a CiaoSDK module.
MarkWelcomeShown()
MarkWelcomeShown()Marks the Welcome popup as shown so it is not displayed again.
MarkOnboardingShown()
MarkOnboardingShown()Marks the onboarding overlay as shown so it is not displayed again.
Events
OnCampaignActivated
OnCampaignActivatedFires in Initialization if there is a campaign saved in state and after HandleDeepLink for valid campaigns.
OnMilestoneCompleted
OnMilestoneCompletedFires when a milestone is completed.
Properties
| Property | Type | Description |
|---|---|---|
CompletedMilestoneCount | int | Number of completed milestones. |
TotalMilestoneCount | int | Total number of milestones in the active campaign. |
CurrencyName | string | Currency label from the campaign. |
EarnedRewardAmount | float | Sum of rewards from completed milestones. |
TotalRewardAmount | float | Sum of rewards across all milestones. |
Updated about 15 hours ago
Did this page help you?
