SnappingDraft

class SnappingDraft(pages: MutableList<Page> = mutableListOf(), var documentName: String? = null, var isCombined: Boolean = true) : Parcelable

Contains Pages and naming metadata necessary for document creation

Constructors

Link copied to clipboard
constructor(pages: MutableList<Page> = mutableListOf(), documentName: String? = null, isCombined: Boolean = true)

Types

Link copied to clipboard

Thrown if page by index does not exist

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addPage(page: Page)

Adds page in the end

fun addPage(position: Int, page: Page)

Adds page to given position

Link copied to clipboard
fun deletePage(page: Page)

Deletes Page if possible

fun deletePage(position: Int)

Deletes Page at given position

Link copied to clipboard
fun getPage(position: Int): Page
Link copied to clipboard
Link copied to clipboard
fun getPosition(page: Page): Int
Link copied to clipboard
fun replacePage(position: Int, page: Page)

Replaces page at given position with new page

Link copied to clipboard
fun size(): Int