CloverCFPCommsHelper

Since

4.1.0

Constructors

Link copied to clipboard
public void CloverCFPCommsHelper(Context context, Intent intent, CloverCFPCommsHelper.MessageListener messageListener)

Types

Link copied to clipboard
public interface MessageListener

Properties

Link copied to clipboard
public final static String LOG_TAG

Functions

Link copied to clipboard
public void dispose()
Cleans up the sessionConnector, loyalty connector and Consumers of this class will want to call this method in their Activity's onDestroy method:
  public class MyCustomActivity extends Activity {
      private CloverCFPCommsHelper cloverCFPCommsHelper;
      ...
      protected void onDestroy() {
          // Tell the helper to clean up everything
          cloverCFPCommsHelper.dispose();
          super.onDestroy();
      }
      ...
  }
Link copied to clipboard
public final void sendMessage(String payload)
Sends a message back to the merchant facing application (i.e.