Package com.pubmatic.sdk.crashanalytics
Object POBCrashAnalyticsUtils
-
- All Implemented Interfaces:
public class POBCrashAnalyticsUtilsUtility class specific for CrashAnalytics operations.
-
-
Field Summary
Fields Modifier and Type Field Description public final static POBCrashAnalyticsUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static StringreadFromFile(Context context, String fileName)Reads the content of the file and if its empty then return null. final static UnitwriteToFile(Context context, String fileName, String crashData)Write the JSONObject's stringified json into provided file name. -
-
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.
-
-
-
-