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 classSnappingDraft.NoPageByIndexExceptionThrown if page by index does not exist
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisEmptypublic StringdocumentNamepublic BooleanisCombined
-
Constructor Summary
Constructors Constructor Description SnappingDraft(List<Page> pages, String documentName, Boolean isCombined)
-
Method Summary
Modifier and Type Method Description final BooleanisEmpty()final UnitaddPage(Page page)Adds page in the end final UnitaddPage(Integer position, Page page)Adds page to given position final UnitreplacePage(Integer position, Page page)Replaces page at given position with new page final PagegetPage(Integer position)final UnitdeletePage(Integer position)Deletes Page at given position final UnitdeletePage(Page page)Deletes Page if possible final IntegergetPosition(Page page)final Integersize()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)
-
-
-
-