Package 

Class InteractionUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> Unit saveInteractionBackup(T interactionModel) Some devices will restart the app while its in the background.
      final static <T extends Any> T getInteractionBackup()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • saveInteractionBackup

         final static <T extends Any> Unit saveInteractionBackup(T interactionModel)

        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.