Package io.scanbot.sdk.persistence
Class StorageSpaceAwareImpl
-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.StorageSpaceAware
public final class StorageSpaceAwareImpl implements StorageSpaceAware
-
-
Field Summary
Fields Modifier and Type Field Description private final Long
availableDiskSpace
private final Long
totalDiskSpace
private final Long
usedDiskSpace
-
Constructor Summary
Constructors Constructor Description StorageSpaceAwareImpl(Context context)
-
Method Summary
Modifier and Type Method Description Long
getAvailableDiskSpace()
Provides full info of how much space available to write data by sdk in bytes. Long
getTotalDiskSpace()
Provides full info of how much space total exist on this device storage in bytes. Long
getUsedDiskSpace()
Provides full info of how much space used on this device storage in bytes. -
-
Constructor Detail
-
StorageSpaceAwareImpl
StorageSpaceAwareImpl(Context context)
-
-
Method Detail
-
getAvailableDiskSpace
Long getAvailableDiskSpace()
Provides full info of how much space available to write data by sdk in bytes. You can check this value before creating page images by sdk. But please don't forget that one page contains more than one image inside.
-
getTotalDiskSpace
Long getTotalDiskSpace()
Provides full info of how much space total exist on this device storage in bytes.
-
getUsedDiskSpace
Long getUsedDiskSpace()
Provides full info of how much space used on this device storage in bytes.
-
-
-
-