logout

fun logout(context: Context, clearCachedData: Boolean, listener: DSLogoutListener?)

This function helps the user to logout

Parameters

context

Context of the calling Activity

clearCachedData

Whether to clear all cached data (Templates, Envelopes, etc) from the local database

listener

DSLogoutListener which states whether logout process is successful or not