如何从JS方法
中的“eventCallBack”返回值参见JS函数定义:
window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);
这里
@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
现在我想返回“GCM_Event”
中生成的值var requiredValue = window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);
我想要requiredValue中的值