public override void DefineAction(string name, Constants.ActionKind kind, ActionArgs args, IDictionary <string, object> options, ActionContext.ActionResponder responder) { if (name == null) { return; } if (responder != null) { ActionRespondersDictionary.Add(name, responder); } string argString = args == null ? null : args.ToJSON(); string optionString = options == null ? null : Json.Serialize(options); lp_defineAction(name, (int)kind, argString, optionString); }
public override void DefineAction(string name, Constants.ActionKind kind, ActionArgs args, IDictionary <string, object> options, Action responder) { if (name == null) { return; } if (responder != null) { ActionRespondersDictionary.Add("ActionResponder:" + name, responder); } string argString = args == null ? null : args.ToJSON(); string optionString = options == null ? null : Json.Serialize(options); int kindInt = (int)kind; NativeSDK.CallStatic("defineAction", name, kindInt, argString, optionString); }