Package 

Object PLYEventManager

    • Method Summary

      Modifier and Type Method Description
      final <ERROR CLASS> newEvent(PLYEvent event) Processes a new event received by the SDK.
      final Unit reset()
      <ERROR CLASS> getJob()
      CoroutineContext getCoroutineContext()
      • Methods inherited from class io.purchasely.managers.PLYEventManager

        onCreate, onDestroy, onPause, onResume, onStart, onStop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newEvent

         final <ERROR CLASS> newEvent(PLYEvent event)

        Processes a new event received by the SDK.

        This function handles various operations related to a new event, including:

        • Logging event details.

        • Determining if the event should trigger listeners and campaigns based on its type and properties.

        • Notifying the registered Purchasely.eventListener if applicable.

        • Storing the event in the local storage.

        • Processing the event for campaigns through PLYCampaignManager.

        • Updating presentation and campaign related data in PLYUserDataStorage for events like "PRESENTATION_VIEWED" and "PRESENTATION_CLOSED".

        • Handling event batching and triggering the sending of events based on priority and queue status.

        • Starting periodic tasks for sending event batches if not already running and if there are events in the queue.

        Parameters:
        event - The PLYEvent object representing the new event.
      • getJob

         <ERROR CLASS> getJob()