code: function (methodName, callback) {
      Mobile(methodName).registerToNative(callback);
      Mobile('didRegisterToNative').callNative(methodName, function () {
        logger.debug('Method %s registered to native', methodName);
      });
    }
docs: Function to register a method to the native side and inform that the registration was done.