MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / start

Function start

Tactility/Source/app/alertdialog/AlertDialog.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23extern const AppManifest manifest;
24
25LaunchId start(const std::string& title, const std::string& message, const std::vector<std::string>& buttonLabels) {
26 std::string items_joined = string::join(buttonLabels, PARAMETER_ITEM_CONCATENATION_TOKEN);
27 auto bundle = std::make_shared<Bundle>();
28 bundle->putString(PARAMETER_BUNDLE_KEY_TITLE, title);
29 bundle->putString(PARAMETER_BUNDLE_KEY_MESSAGE, message);
30 bundle->putString(PARAMETER_BUNDLE_KEY_BUTTON_LABELS, items_joined);
31 return app::start(manifest.appId, bundle);
32}
33
34LaunchId start(const std::string& title, const std::string& message, const std::vector<const char*>& buttonLabels) {
35 std::string items_joined = string::join(buttonLabels, PARAMETER_ITEM_CONCATENATION_TOKEN);

Callers

nothing calls this directly

Calls 2

joinFunction · 0.85
putStringMethod · 0.45

Tested by

no test coverage detected