Exemplo n.º 1
0
 public static void isSurveyAvailable(
     final ForgeTask task, @ForgeParam("tags") final JsonArray surveyTags) {
   Log.e("Tags: " + surveyTags.toString());
   String[] tags = new String[surveyTags.size()];
   for (int i = 0; i < surveyTags.size(); i++) {
     tags[i] = surveyTags.get(i).getAsString();
   }
   boolean available = Apptentive.isSurveyAvailable(ForgeApp.getActivity(), tags);
   task.success(available);
 }
Exemplo n.º 2
0
 public static void getUnreadMessageCount(final ForgeTask task) {
   int count = Apptentive.getUnreadMessageCount(ForgeApp.getActivity());
   task.success(new JsonPrimitive(count));
 }
Exemplo n.º 3
0
 public static void logSignificantEvent(final ForgeTask task) {
   Apptentive.logSignificantEvent(ForgeApp.getActivity());
 }
Exemplo n.º 4
0
 public static void removeCustomPersonData(
     final ForgeTask task, @ForgeParam("key") final String key) {
   Apptentive.removeCustomPersonData(ForgeApp.getActivity(), key);
 }
Exemplo n.º 5
0
 public static void addCustomPersonData(
     final ForgeTask task,
     @ForgeParam("key") final String key,
     @ForgeParam("value") final String value) {
   Apptentive.addCustomPersonData(ForgeApp.getActivity(), key, value);
 }
Exemplo n.º 6
0
 public static void setInitialUserEmailAddress(
     final ForgeTask task,
     @ForgeParam("initialUserEmailAddress") final String initialUserEmailAddress) {
   Apptentive.setInitialUserEmail(ForgeApp.getActivity(), initialUserEmailAddress);
   task.success();
 }
Exemplo n.º 7
0
 public static void callListener(final ForgeTask task, @ForgeParam("name") final String name) {
   ForgeApp.event(name);
 }