addPage

abstract fun addPage(@IntRange(from = 0) pageIndex: Int, @NonNull newPageConfiguration: NewPage): Single<List<EditingChange>>

Adds a new page at the specified pageIndex, with the configuration options specified in newPageConfiguration.

Scheduler:
addPage(int, NewPage) does not operate by default on a particular .

Return

Single emitting a list of editing changes for undo/redo operations. If a batch operation is in progress, the emitted list will be empty and the actual editing change is generated upon committing the batch.

Parameters

pageIndex

Index where the new page will be added.

newPageConfiguration

Configuration options specified for the new page.