getCatalogIntent

Returns the Intent to launch the PlaytimeActivity displaying the catalog.

Use it like this:


try {
    Intent playtimeCatalogIntent = Playtime.getCatalogIntent(activity);
    activity.startActivity(playtimeCatalogIntent);
} catch (PlaytimeNotInitializedException notInitializedException) {
    // you have not initialized the Playtime SDK
} catch (PlaytimeException exception) {
    // the catalog cannot be displayed for some other reason
}

Return

The Intent to launch the catalog.

Parameters

context

A context.

Throws

When the catalog is not available.


Returns the Intent to launch the PlaytimeActivity displaying the catalog.

Use it like this:


try {
Intent playtimeCatalogIntent = Playtime.getCatalogIntent(activity);
activity.startActivity(playtimeCatalogIntent);
} catch(PlaytimeNotInitializedException notInitializedException) {
// you have not initialized the Playtime SDK
} catch(PlaytimeException exception) {
// the catalog cannot be displayed for some other reason
}

Return

The Intent to launch the catalog.

Parameters

ctx

A context.

playtimeParams

The PlaytimeParams object to pass the User-Acquisition(UA) fields and placement

Throws

When the catalog is not available.