2.3.1 • Published 14 days ago

com.elevatix.unity.dialog v2.3.1

Weekly downloads
-
License
-
Repository
-
Last release
14 days ago

Elevatix Dialog

!!! Important note: Dialog is not supported for SDK version SDK v2.0.0

Elevatix Dialog is package that provides basic customizable dialog UI as reaction to recommendations from SDK

Table of contents

Preconditions

Install Elevatix SDK

See SDK documentation about steps how to do it: https://www.npmjs.com/package/com.elevatix.unity.sdk

Initialize Elevatix

SDK could be initialized without recommendations handler - 'AnalyticsClient.OnRecommendationReady'.

All this package is about - handle SDK recommendation for the game

Setup

Install Elevatix Dialog

  • Open Unity editor
  • Navigate to Window -> Package Manager

  • Select Elevatix Dialog and hit install

Assumption: scoped registry is configured during SDK installation.

If scoped registry isn't configured follow SDK docs to configure

Extract DialogAssets

DialogAssets unitypackage

DialogAssets import

Add Dialog Manager to the scene

Add dialog manager to the scene after "loading" stage. Note that dialog manager kept alive after scene switch

Implement IEltxPriceGetter

Interface that needs to be implemented:

    interface IEltxPriceGetter
    {
        public string GetPrice(string productId);
    }

Implementation of this interface has to be attached to the DialogManager

Add purchases requests listener

EltxDialogManager emits onPurchaseRequest event every time player hits primary(buy) button. Dialog manager invokes passed handler with Recommendation object(see structure in SDK documentation)

Additional Features

onOpen/onClose events

EltxDialogManager emits onOpen/onClose events when dialog changes its state. These events might be used to mute sound, pause the game and etc.

closeAfterPurchaseRequest param

Dialog can be closed right after user clicked on the primary(buy button with the price) button.

!Important: If this option is set to false - game needs to call eltxDialogManager.CloseDialog after successful purchase to close dialog

Products images

There are two options how product images might be loaded to the elevatix dialogs

Loaded from the server

To associate product with image - use web application to upload it

Taken from built in resources

Game should associate each product ID with some image from built in resources in the following way: ProductImagesConfig

automatic and manual show modes

Modes description: When game tracks some event via elevatix SDK - certain personal offer recommendation could be provided.

When eltxDialogManager.autoShow is set to true(which is default) - dialog could be shown automatically right away after event is tracked.

When eltxDialogManager.autoShow is set to false - recommendations queued in the eltxDialogManager(after ) and shown one by one after game calls EltxDialogManager.ShowPendingOffers

pre-cache images remote images

EltxDialogManager.CacheImages - will load over the network all of the images that could be used in the PO dialogs

WaitUntilIdle

Executes coroutine after dialog(s) are closed

ErrorHandling

If error occured during purchase processing - there is a method to hide spinner and give user another chance.

Call eltxDialogManager.ToggleSpinner to hide blocking spinner.

Complete EltxDialogManager API

2.3.1

14 days ago

2.3.0

16 days ago

2.2.1

18 days ago

2.2.0

30 days ago

2.1.4

2 months ago

2.1.3

2 months ago

2.1.2

3 months ago

2.1.1

5 months ago

2.1.0

5 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.1.0

6 months ago

1.0.121

10 months ago

1.0.120

10 months ago

1.0.123

10 months ago

1.0.122

10 months ago

1.0.129

8 months ago

1.0.128

8 months ago

1.0.125

9 months ago

1.0.124

9 months ago

1.0.127

8 months ago

1.0.126

8 months ago

1.0.118

10 months ago

1.0.119

10 months ago

1.0.117

12 months ago

1.0.114

1 year ago

1.0.116

12 months ago

1.0.115

12 months ago

1.0.112

1 year ago

1.0.113

1 year ago

1.0.101

1 year ago

1.0.107

1 year ago

1.0.106

1 year ago

1.0.109

1 year ago

1.0.108

1 year ago

1.0.103

1 year ago

1.0.102

1 year ago

1.0.105

1 year ago

1.0.110

1 year ago

1.0.111

1 year ago

1.0.100

1 year ago

1.0.80

1 year ago

1.0.84

1 year ago

1.0.83

1 year ago

1.0.82

1 year ago

1.0.81

1 year ago

1.0.88

1 year ago

1.0.87

1 year ago

1.0.86

1 year ago

1.0.89

1 year ago

1.0.90

1 year ago

1.0.95

1 year ago

1.0.94

1 year ago

1.0.93

1 year ago

1.0.99

1 year ago

1.0.98

1 year ago

1.0.76

1 year ago

1.0.97

1 year ago

1.0.96

1 year ago

1.0.79

1 year ago

1.0.78

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.71

1 year ago

1.0.70

1 year ago

1.0.69

1 year ago

1.0.68

1 year ago

1.0.67

1 year ago

1.0.66

1 year ago

1.0.65

1 year ago

1.0.64

1 year ago

1.0.63

1 year ago

1.0.60

1 year ago