示例#1
0
///////////////////////////////////////////////////////////////////////////////
/// @fn FB::variant ibrowserAPI::echo(const FB::variant& msg)
///
/// @brief  Echos whatever is passed from Javascript.
///         Go ahead and change it. See what happens!
///////////////////////////////////////////////////////////////////////////////
FB::variant ibrowserAPI::echo(const FB::variant& msg)
{
    static int n(0);
    fire_echo("So far, you clicked this many times: ", n++);
    // return "foobar";
    return msg;
}
示例#2
0
文件: AXRAPI.cpp 项目: axr/plugin
/*!
 * @brief Echos whatever is passed from Javascript.
 *        Go ahead and change it. See what happens!
 */
FB::variant AXRAPI::echo(const FB::variant& msg)
{
    static int n(0);
    fire_echo("So far, you clicked this many times: ", n++);

    return msg;
}
示例#3
0
///////////////////////////////////////////////////////////////////////////////
/// @fn FB::variant SmartFilesAPI::echo(const FB::variant& msg)
///
/// @brief  Echos whatever is passed from Javascript.
///         Go ahead and change it. See what happens!
///////////////////////////////////////////////////////////////////////////////
FB::variant SmartFilesAPI::echo(const FB::variant& msg)
{
    static int n(0);
    fire_echo("So far, you clicked this MOOFOOO this many times: ", n++);

    // return "foobar";
    return msg;
}
示例#4
0
void SmartFilesAPI::openFileDialog()
{
    //static int n(0);
    fire_echo("Got open file dialog!!", 2);

    // return "foobar";
    //return msg;
}
示例#5
0
// Method echo
FB::variant hapticAPI::echo(const FB::variant& msg)
{
    static int n(0);
    fire_echo(msg, n++);
    return msg;
}
示例#6
0
// Method echo
FB::variant WebrtcPluginAPI::echo(const FB::variant& msg)
{
    static int n(0);
    fire_echo(msg, n++);
    return msg;
}
示例#7
0
// Method echo
FB::variant btlauncherAPI::echo(const FB::variant& msg)
{
    static int n(0);
    fire_echo(msg, n++);
    return msg;
}