Beispiel #1
0
        public void print(PrintOptions options, Action <bool> callback)
        {
            if (callback == null)
            {
                return;
            }
            string       eventName = "_print";
            CallbackItem item      = null;

            item = API.CreateCallbackItem(eventName, (object[] args) => {
                API.RemoveCallbackItem(eventName, item);
                bool success = Convert.ToBoolean(args[0]);
                callback?.Invoke(success);
            });
            API.Apply("print", options, item);
        }
Beispiel #2
0
 public void print(PrintOptions options)
 {
     API.Apply("print", options);
 }