-
public interface StorageHelperIf
-
-
Method Summary
Modifier and Type Method Description abstract BooleanwriteToCoreJSFile(String content)abstract BooleanwriteToFile(String path, String content)abstract BooleanisCoreJSFileExist()abstract BooleanisFileExist(String path)abstract StringgetCoreJSFromFile()Write content of sdk_core.js in android assets folder to file in internal storage if the file does not exist. abstract StringreadCoreJSFile()abstract StringreadFile(String path)abstract BooleandeleteCoreJSFile()abstract StringgetCoreJSFilePath()abstract UnitdeleteSharedJSIfSdkVersionUpdated()Deletes shared js stored to disk if SDK Version is updated. -
-
Method Detail
-
writeToCoreJSFile
abstract Boolean writeToCoreJSFile(String content)
-
writeToFile
abstract Boolean writeToFile(String path, String content)
-
isCoreJSFileExist
abstract Boolean isCoreJSFileExist()
-
isFileExist
abstract Boolean isFileExist(String path)
-
getCoreJSFromFile
abstract String getCoreJSFromFile()
Write content of sdk_core.js in android assets folder to file in internal storage if the file does not exist.
-
readCoreJSFile
abstract String readCoreJSFile()
-
deleteCoreJSFile
abstract Boolean deleteCoreJSFile()
-
getCoreJSFilePath
abstract String getCoreJSFilePath()
-
deleteSharedJSIfSdkVersionUpdated
abstract Unit deleteSharedJSIfSdkVersionUpdated()
Deletes shared js stored to disk if SDK Version is updated. This function blocks current thread until completion because it needs to delete the previous SDK upgraded shared js before loading the packaged in shared js to the WebView.
-
-
-
-