MoEPersonalizeHelper
object MoEPersonalizeHelper
Provides APIs for fetching personalized campaign data.
Author
Abhishek Kumar
Since
1.0.0
Functions
Link copied to clipboard
Tracks the click of an experience campaign.
Link copied to clipboard
Tracks the display of an experience campaign.
Link copied to clipboard
fun experiencesShown(context: Context, campaigns: List<ExperienceCampaign>, workspaceId: String? = null)
Tracks the display of a set of experience campaigns.
Link copied to clipboard
fun fetchExperience(context: Context, experienceKey: String, attributes: Map<String, String> = emptyMap(), onSuccess: SuccessCallback<ExperienceCampaignsResult>, onFailure: (reason: RequestFailureReasonCode, message: String) -> Unit, workspaceId: String? = null)
Fetches a personalized experience campaign.
Link copied to clipboard
fun fetchExperiences(context: Context, experienceKeys: Set<String>, attributes: Map<String, String> = emptyMap(), onSuccess: SuccessCallback<ExperienceCampaignsResult>, onFailure: (reason: RequestFailureReasonCode, message: String) -> Unit, workspaceId: String? = null)
Fetches multiple personalized experience campaigns.
Link copied to clipboard
fun fetchExperiencesMeta(context: Context, status: List<ExperienceStatus>, onSuccess: SuccessCallback<ExperienceCampaignsMetadata>, onFailure: (reason: RequestFailureReasonCode, message: String) -> Unit, workspaceId: String? = null)
Fetches the metadata for personalized experiences.
Link copied to clipboard
fun offeringClicked(context: Context, campaign: ExperienceCampaign, offeringPayload: Map<String, Any>, workspaceId: String? = null)
Tracks the click of an experience campaign.