CloverCFPLoyaltyHelper

public void CloverCFPLoyaltyHelper(Activity activity, CloverCFPLoyaltyHelper.LoyaltyListener loyaltyListener, CFPSessionListener externalSessionListener)

Main constructor.

Example usage:

  public class CloverLoyaltyCustomActivity extends Activity
                                           implements SessionListener, CloverCFPLoyaltyHelper.LoyaltyListener {
      private CloverCFPLoyaltyHelper cloverCFPLoyaltyHelper;
      ...
      protected void onCreate(Bundle savedInstanceState) {
          ...
          cloverCFPLoyaltyHelper = new CloverCFPLoyaltyHelper(this, this, this);
          ...
      }
      ...
  }

Since

4.1.0

Parameters

activity

- a reference to the activity that is using this helper class.

loyaltyListener

- a client that receives the onLoyaltyDataLoaded(), onLoyaltyServiceStateChanged(), onMessage() events, and sends an event via sendMessage().

externalSessionListener

- a client that will receive onSessionDataChanged and onSessionEvent events.