2024-12-08 16:46:19 +01:00

23 lines
485 B
C++

#pragma once
#include <string>
#include <vector>
#include "Bundle.h"
/**
* Start the app by its ID and provide:
* - an optional title
* - 2 or more items
*
* If you provide 0 items, the app will auto-close.
* If you provide 1 item, the app will auto-close with result index 0
*/
namespace tt::app::selectiondialog {
void start(std::string title, const std::vector<std::string>& items);
/** App result data */
int32_t getResultIndex(const Bundle& bundle);
}