示例#1
0
 public void AddMenuItem(WKMenuItemIcon itemIcon, string title, Action action)
 {
     var mi = GetMethodInfo (action);
     var sel = GetUniqueSelector ();
     AddMenuItem (itemIcon, title, sel);
     Runtime.ConnectMethod (mi, sel);
 }
示例#2
0
        public void AddMenuItem(WKMenuItemIcon itemIcon, string title, Action action)
        {
            var mi  = GetMethodInfo(action);
            var sel = GetUniqueSelector();

            AddMenuItem(itemIcon, title, sel);
            Runtime.ConnectMethod(mi, sel);
        }
 public virtual void AddMenuItem(WKMenuItemIcon itemIcon, string title, Selector action)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
示例#4
0
 public virtual void AddMenuItem(WKMenuItemIcon itemIcon, string title, Selector action)
 {
     throw new PlatformNotSupportedException("The WatchKit framework has been removed from iOS");
 }