//EditTexts for inserting content
val edt_content: EditText
var listener: MBAdminApiUpdateSectionListener
val section_id = //ID of the section you wish to update
//URI of the image, taken from camera or gallery
//Set if you want this section to be hidden when requesting for block sections, or not
val params = ArrayList<MBAdminParameter>()
params.add(MBAdminParameter(“title”, edt_title.getText().toString()))
params.add(MBAdminParameter(“content”, edt_content.getText().toString()))
params.add(MBAdminParameter(“link”, edt_link.getText().toString()))
val params_file = ArrayList<MBAdminParameterFile>()
val files = ArrayList<MBAdminSingleFile>()
files.add(MBAdminSingleFile(getFileName(),
getUriRealPath(application, img_uri)))
params_file.add(MBAdminParameterFile(“image”, files))
MBurgerAdminTasks.updateSection(applicationContext,
Locale.getDefault().getLanguage(), show_in_app);