Skip to content

Java api: Options (Customizations)

Duy Dao edited this page Feb 27, 2018 · 1 revision

To create options (for customizations):

Options options = new Options()
    .placeHolder(String)
    .onImageButtonClicked( new Runnable {
        @Override
        public void run() {
            // Do your stuffs here (e.g: start image picker)
        }
    } )
    .showToolbar(boolean) // Set to false to hide toolbar
    .buttonLayout(Arrays.asList(
        EditorButton.UNDO,
        EditorButton.REDO,
        EditorButton.IMAGE,
        ...
    ))
    .buttonActivatedColorResource(resId)
    .buttonDeactivatedColorResource(resId)
    .onInitialized( new Runnable {
        @Override
        public void run() {
            // Do your stuffs here (e.g: load saved contents)
        }
    } );
Clone this wiki locally