Package io.scanbot.sdk.entity
Class SnappingDraft
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SnappingDraft implements Parcelable
Contains Pages and naming metadata necessary for document creation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
SnappingDraft.NoPageByIndexException
Thrown if page by index does not exist
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
isEmpty
public String
documentName
public Boolean
isCombined
-
Constructor Summary
Constructors Constructor Description SnappingDraft(List<Page> pages, String documentName, Boolean isCombined)
-
Method Summary
Modifier and Type Method Description final Boolean
isEmpty()
final Unit
addPage(Page page)
Adds page in the end final Unit
addPage(Integer position, Page page)
Adds page to given position final Unit
replacePage(Integer position, Page page)
Replaces page at given position with new page final Page
getPage(Integer position)
final Unit
deletePage(Integer position)
Deletes Page at given position final Unit
deletePage(Page page)
Deletes Page if possible final Integer
getPosition(Page page)
final Integer
size()
final List<Page>
getPages()
-
-
Method Detail
-
replacePage
final Unit replacePage(Integer position, Page page)
Replaces page at given position with new page
-
deletePage
final Unit deletePage(Integer position)
Deletes Page at given position
-
deletePage
final Unit deletePage(Page page)
Deletes Page if possible
- Parameters:
page
- Page to delete
-
getPosition
final Integer getPosition(Page page)
-
-
-
-