API Reference

Single entry point: RewardCenter.

Methods

Initialize()

Initializes the SDK. Call once at app start. Not needed when integrated as a CiaoSDK module.

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)

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()

Marks the Welcome popup as shown so it is not displayed again.

MarkOnboardingShown()

Marks the onboarding overlay as shown so it is not displayed again.

Events

OnCampaignActivated

Fires in Initialization if there is a campaign saved in state and after HandleDeepLink for valid campaigns.

OnMilestoneCompleted

Fires when a milestone is completed.

Properties

PropertyTypeDescription
CompletedMilestoneCountintNumber of completed milestones.
TotalMilestoneCountintTotal number of milestones in the active campaign.
CurrencyNamestringCurrency label from the campaign.
EarnedRewardAmountfloatSum of rewards from completed milestones.
TotalRewardAmountfloatSum of rewards across all milestones.

Did this page help you?