Object POBCrashAnalyticsUtils

  • All Implemented Interfaces:

    
    public class POBCrashAnalyticsUtils
    
                        

    Utility class specific for CrashAnalytics operations.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String readFromFile(Context context, String fileName) Reads the content of the file and if its empty then return null.
      final static Unit writeToFile(Context context, String fileName, String crashData) Write the JSONObject's stringified json into provided file name.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • readFromFile

         final static String readFromFile(Context context, String fileName)

        Reads the content of the file and if its empty then return null.

        Parameters:
        context - to read file internal storage.
        Returns:

        Content of the file as String

      • writeToFile

         final static Unit writeToFile(Context context, String fileName, String crashData)

        Write the JSONObject's stringified json into provided file name. This overwrites the existing contains of the file with provided json object content.

        Parameters:
        context - to read the file from internal storage.
        fileName - containing the crash details.