addPages

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

Adds a new collection of pages at the specified pageIndex, with the configuration options specified in newPageConfigurations for every page.

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 pages will be added.

newPageConfigurations

List of configuration options specified for the new pages.