-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PLYPresentation implements Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StringplacementIdprivate final StringaudienceIdprivate final StringabTestIdprivate final StringabTestVariantIdprivate final StringcampaignIdprivate final StringflowIdprivate final Stringlanguageprivate final PLYPresentationTypetypeprivate final List<PLYPresentationPlan>plansprivate final PLYPresentationMetadatametadataprivate final StringbackgroundColorprivate final StringcontentIdprivate final Integerheightprivate final PLYTransitiondisplayMode
-
Constructor Summary
Constructors Constructor Description PLYPresentation(String id, String placementId, String audienceId, String abTestId, String abTestVariantId, String campaignId, String flowId, String language, PLYPresentationType type, List<PLYPresentationPlan> plans, PLYPresentationMetadata metadata, String backgroundColor, String contentId, Integer height, PLYTransition displayMode, String internalId, String internalPlacementId, String internalAudienceId, String internalAbTestId, String internalAbTestVariantId, String requestId, String internalCampaignId, PLYPresentationProperties properties, Flow flow, List<Action> actions)
-
Method Summary
-
-
Constructor Detail
-
PLYPresentation
PLYPresentation(String id, String placementId, String audienceId, String abTestId, String abTestVariantId, String campaignId, String flowId, String language, PLYPresentationType type, List<PLYPresentationPlan> plans, PLYPresentationMetadata metadata, String backgroundColor, String contentId, Integer height, PLYTransition displayMode, String internalId, String internalPlacementId, String internalAudienceId, String internalAbTestId, String internalAbTestVariantId, String requestId, String internalCampaignId, PLYPresentationProperties properties, Flow flow, List<Action> actions)
-
-
Method Detail
-
getPlacementId
final String getPlacementId()
-
getAudienceId
final String getAudienceId()
-
getAbTestId
final String getAbTestId()
-
getAbTestVariantId
final String getAbTestVariantId()
-
getCampaignId
final String getCampaignId()
-
getLanguage
final String getLanguage()
-
getType
final PLYPresentationType getType()
-
getPlans
final List<PLYPresentationPlan> getPlans()
-
getMetadata
final PLYPresentationMetadata getMetadata()
-
getBackgroundColor
final String getBackgroundColor()
-
getContentId
final String getContentId()
-
getDisplayMode
final PLYTransition getDisplayMode()
-
buildView
final PLYPresentationView buildView(Context context, PLYPresentationProperties properties, Function2<PLYProductViewResult, PLYPlan, Unit> callback)
-
display
final Unit display(Context context, Function2<PLYProductViewResult, PLYPlan, Unit> callback)
Displays the presentation in a separate activity.
- Parameters:
context- The context to use to display Purchasely Screens.
-
display
final Unit display(Activity activity, Function2<PLYProductViewResult, PLYPlan, Unit> callback)
Displays the presentation in a separate activity.
- Parameters:
activity- The activity to use to display Purchasely Screens.
-
getFragment
final Fragment getFragment(Function2<PLYProductViewResult, PLYPlan, Unit> callback)
Returns a Fragment that can be used to display the presentation.
-
-
-
-