-
- All Implemented Interfaces:
public final class InteractionUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> UnitsaveInteractionBackup(T interactionModel, Context context)Some devices will restart the app while its in the background. final static <T extends Any> TgetInteractionBackup(Context context)-
-
Method Detail
-
saveInteractionBackup
final static <T extends Any> Unit saveInteractionBackup(T interactionModel, Context context)
Some devices will restart the app while its in the background. The interaction's model is the only dependency that cannot be recreated in that process. This backup will attempt to retrieve the interaction from a sharedPreferences that is created before the interaction launches.
If it fails to create, don't throw an exception since this is an edge case fix.
-
getInteractionBackup
final static <T extends Any> T getInteractionBackup(Context context)
-
-
-
-