| 23 | extern const AppManifest manifest; |
| 24 | |
| 25 | LaunchId 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 | |
| 34 | LaunchId 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); |