void LaunchEmail(const char *email_address) { lock_guard guard(frameCommandLock); frameCommands.push(FrameCommand("launchEmail", email_address)); }
void LaunchBrowser(const char *url) { lock_guard guard(frameCommandLock); frameCommands.push(FrameCommand("launchBrowser", url)); }
void LaunchMarket(const char *url) { lock_guard guard(frameCommandLock); frameCommands.push(FrameCommand("launchMarket", url)); }
void Vibrate(int length_ms) { lock_guard guard(frameCommandLock); char temp[32]; sprintf(temp, "%i", length_ms); frameCommands.push(FrameCommand("vibrate", temp)); }
void ShowKeyboard() { lock_guard guard(frameCommandLock); frameCommands.push(FrameCommand("showKeyboard", "")); }
// Android implementation of callbacks to the Java part of the app void SystemToast(const char *text) { lock_guard guard(frameCommandLock); frameCommands.push(FrameCommand("toast", text)); }
void System_SendMessage(const char *command, const char *parameter) { lock_guard guard(frameCommandLock); frameCommands.push(FrameCommand(command, parameter)); }
void PushCommand(std::string cmd, std::string param) { std::lock_guard<std::mutex> guard(frameCommandLock); frameCommands.push(FrameCommand(cmd, param)); }