Package com.swrve.sdk
Interface SwrveUserResourcesListener
-
- All Known Implementing Classes:
UIThreadSwrveResourcesRunnable
,UIThreadSwrveUserResourcesListener
public interface SwrveUserResourcesListener
Implement this interface to handle the result of Swrve::getUserResources(). Note: the methods in this object will be invoked from a different thread than the one used to call Swrve::getUserResources().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onUserResourcesError(java.lang.Exception exception)
Called back on error.void
onUserResourcesSuccess(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> resources, java.lang.String resourcesAsJSON)
This method is invoked asynchronously to return the request response of the Swrve::getUserResources().
-
-
-
Method Detail
-
onUserResourcesSuccess
void onUserResourcesSuccess(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> resources, java.lang.String resourcesAsJSON)
This method is invoked asynchronously to return the request response of the Swrve::getUserResources(). Note: this method is invoked from a different thread than the thread used to call Swrve::getUserResources().- Parameters:
resources
- the resources represented as a map in the form uid = (attribute_name=attribute_value).resourcesAsJSON
- the resources as JSON.
-
onUserResourcesError
void onUserResourcesError(java.lang.Exception exception)
Called back on error.- Parameters:
exception
- Exception caused when trying to obtain user resources.
-
-