How to return value from "eventCallBack" from JS method
<p>How to return value from "eventCallBack" from JS method</p>

<p>see JS function definition:</p>

<pre><code>window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);
</code></pre>

<p>Here </p>

<pre><code>@param senderId - GCM service identifier

@param eventCallback - {String} - Name of global window function that will handle incoming events from GCM
@param successCallback - {Function} - called on success on registering device

@param failureCallback - {Function} - called on failure on registering device
</code></pre>

<p>Now I want to return value generated in "GCM_Event"</p>

<pre><code>var requiredValue = window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);
</code></pre>

<p>I want value in requiredValue</p>
