Class UIThreadSwrveResourcesRunnable

  • All Implemented Interfaces:
    SwrveUserResourcesListener, java.lang.Runnable

    public abstract class UIThreadSwrveResourcesRunnable
    extends UIThreadSwrveRunnable
    implements SwrveUserResourcesListener
    This helper class is used to run UI logic to handle the result of Swrve::getUserResources() Note: the callback method onResourcesSuccess will be called from the same UI threat than the caller Activity.
    • Constructor Detail

      • UIThreadSwrveResourcesRunnable

        public UIThreadSwrveResourcesRunnable()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • setData

        public void setData​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> resources,
                            java.lang.String resourcesAsJSON)