- WiFi Connect app is now hidden by default, but accessible at the bottom of the WiFi Manage app when WiFi is turned on. - WiFi service now turns on WiFi when calling connect() and WiFi is not on. - Removed `blocking` option for `service::loader::startApp()`. This feature was unused and complex. - Various apps: Moved private headers into Private/ folder. - Various apps: created start() function for easy starting. - Added documentation to all TactilityC APIs - Refactored various `enum` into `class enum` - Refactor M5Stack `initBoot()` (but VBus is still 0V for some reason)
22 lines
630 B
C
22 lines
630 B
C
#pragma once
|
|
|
|
#include "tt_bundle.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* Start an app that displays a list of items and allows the user to select one.
|
|
* @param[in] title the title to show in the toolbar
|
|
* @param[in] argc the amount of items that the list contains
|
|
* @param[in] argv the labels of the items in the list
|
|
*/
|
|
void tt_app_selectiondialog_start(const char* title, int argc, const char* argv[]);
|
|
|
|
/** @return the index of the item that was clicked by the user, or -1 when the user didn't select anything */
|
|
int32_t tt_app_selectiondialog_get_result_index(BundleHandle handle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |