changeAttachmentPickerMode

fun changeAttachmentPickerMode(attachmentsPickerMode: AttachmentsPickerMode, hasPermission: () -> Boolean = { true })

Changes the currently selected AttachmentsPickerMode and loads the required data. If no permission is granted will not try and load data to avoid crashes.

Parameters

attachmentsPickerMode

The currently selected picker mode.

hasPermission

Handler to check if there is permission for wanted action.