Package com.batch.android
Class WebserviceLauncher
- java.lang.Object
-
- com.batch.android.WebserviceLauncher
-
public final class WebserviceLauncher extends java.lang.ObjectSimple proxy to allow webservice call from outside this package
-
-
Constructor Summary
Constructors Constructor Description WebserviceLauncher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskRunnableinitDisplayReceiptWebservice(android.content.Context context, DisplayReceiptPostDataProvider dataProvider, DisplayReceiptWebserviceListener listener)Create an instance of the display receipt webservice and return the runnablestatic TaskRunnableinitOptOutTrackerWebservice(android.content.Context context, java.util.List<Event> events, TrackerWebserviceListener listener)Create an instance of the Opt-Out Tracker webservice and return the runnablestatic TaskRunnableinitTrackerWebservice(RuntimeManager runtimeManager, java.util.List<Event> events, TrackerWebserviceListener listener)Create an instance of the Tracker webservice and return the runnablestatic booleanlaunchAttributesCheckWebservice(RuntimeManager runtimeManager, long version, java.lang.String transactionID)static booleanlaunchAttributesSendWebservice(RuntimeManager runtimeManager, long version, java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> tags)static booleanlaunchLocalCampaignsWebservice(RuntimeManager runtimeManager)static booleanlaunchPushWebservice(RuntimeManager runtimeManager, Registration registration)Launch the push webservicestatic booleanlaunchStartWebservice(RuntimeManager runtimeManager, boolean fromPush, java.lang.String pushId, boolean userActivity)Launch the start webservice
-
-
-
Method Detail
-
launchStartWebservice
public static boolean launchStartWebservice(RuntimeManager runtimeManager, boolean fromPush, java.lang.String pushId, boolean userActivity)
Launch the start webservice
-
initTrackerWebservice
public static TaskRunnable initTrackerWebservice(RuntimeManager runtimeManager, java.util.List<Event> events, TrackerWebserviceListener listener)
Create an instance of the Tracker webservice and return the runnable- Parameters:
runtimeManager-events-listener-- Returns:
- instance of tracker webservice ready to be runned
-
initDisplayReceiptWebservice
public static TaskRunnable initDisplayReceiptWebservice(android.content.Context context, DisplayReceiptPostDataProvider dataProvider, DisplayReceiptWebserviceListener listener)
Create an instance of the display receipt webservice and return the runnable- Parameters:
context-dataProvider-listener-- Returns:
- instance of the webservice ready to be run
-
initOptOutTrackerWebservice
public static TaskRunnable initOptOutTrackerWebservice(android.content.Context context, java.util.List<Event> events, TrackerWebserviceListener listener)
Create an instance of the Opt-Out Tracker webservice and return the runnable- Parameters:
events-listener-- Returns:
- instance of tracker webservice ready to be runned
-
launchPushWebservice
public static boolean launchPushWebservice(RuntimeManager runtimeManager, @NonNull Registration registration)
Launch the push webservice
-
launchAttributesSendWebservice
public static boolean launchAttributesSendWebservice(RuntimeManager runtimeManager, long version, java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> tags)
-
launchAttributesCheckWebservice
public static boolean launchAttributesCheckWebservice(RuntimeManager runtimeManager, long version, java.lang.String transactionID)
-
launchLocalCampaignsWebservice
public static boolean launchLocalCampaignsWebservice(RuntimeManager runtimeManager)
-
-