CrossPromotionHelper

Overview

Android SDK cross-promotion helper class.

Go back to the SDK reference index.

Class declaration

public class CrossPromotionHelper

Import the class

import com.appsflyer.share.CrossPromotionHelper;
import com.appsflyer.share.CrossPromotionHelper

Methods

logAndOpenStore

Method signature

public static void logAndOpenStore(@NonNull Context context,
                                       String promoted_app_id,
                                       String campaign,
                                       Map<String, String> userParams)

Description

Input arguments

TypeNameDescription
ContextcontextApplication / Activity Context.
Stringpromoted_app_id
StringcampaignName of cross-promotion campaign.
Map<String, String>userParamsOptional.

Returns
void.

logCrossPromoteImpression

Method signature

public static void logCrossPromoteImpression(@NonNull Context context,
                                                 String appID,
                                                 String campaign,
                                                 Map<String, String> userParams)

Description

Input arguments

TypeNameDescription
ContextcontextApplication / Activity Context.
StringappID
StringcampaignName of cross-promotion campaign.
Map<String, String>userParamsOptional.

Returns
void.

setUrl

Method signature

public static void setUrl(Map<String, String> mapOfURLs)

Description

Input arguments

TypeNameDescription
Map<String, String>mapOfURLs

Returns
void.