onPositive

fun onPositive(listener: SelectionListener)

Set the SelectionListener.

Parameters

listener

Listener that is invoked when a file or folder was selected.


fun onPositive(@StringRes positiveRes: Int, listener: SelectionListener? = null)

Set the text of the positive button and set the SelectionListener.

Parameters

positiveRes

The String resource id for the positive button.

listener

Listener that is invoked when a file or folder was selected.


fun onPositive(positiveText: String, listener: SelectionListener? = null)

Set the text of the positive button and set the SelectionListener.

Parameters

positiveText

The text for the positive button.

listener

Listener that is invoked when a file or folder was selected.


fun onPositive(    @StringRes positiveRes: Int,     @DrawableRes drawableRes: Int,     listener: SelectionListener? = null)

Set the text and icon of the positive button and set the SelectionListener.

Parameters

positiveRes

The String resource id for the positive button.

drawableRes

The drawable resource for the button icon.

listener

Listener that is invoked when a file or folder was selected.


fun onPositive(    positiveText: String,     @DrawableRes drawableRes: Int,     listener: SelectionListener? = null)

Set the text and icon of the positive button and set the SelectionListener.

Parameters

positiveText

The text for the positive button.

drawableRes

The drawable resource for the button icon.

listener

Listener that is invoked when a file or folder was selected.


fun onPositive(    @StringRes positiveRes: Int,     drawable: Drawable,     listener: SelectionListener? = null)

Set the text and icon of the positive button and set the SelectionListener.

Parameters

positiveRes

The String resource id for the positive button.

drawable

The drawable for the button icon.

listener

Listener that is invoked when a file or folder was selected.


fun onPositive(    positiveText: String,     drawable: Drawable,     listener: SelectionListener? = null)

Set the text and icon of the positive button and set the SelectionListener.

Parameters

positiveText

The text for the positive button.

drawable

The drawable for the button icon.

listener

Listener that is invoked when a file or folder was selected.