Пример #1
0
 private void SendResult(object resultData = null)
 {
     if (!completed)
     {
         completed = true;
         RNCommandResult data   = new RNCommandResult(id, resolved, resultData);
         RNMessageResult result = new RNMessageResult(name, data);
         RNBridge.SendResult(result);
     }
 }
Пример #2
0
        private void SendResult(object resultData = null)
        {
            if (!this.completed)
            {
                this.completed = true;
                if (resultData == null)
                {
                    resultData = new { };
                }

                RNBridge.SendResult(id, name, resolved, resultData);
            }
        }