protected override void OnDetached()
 {
     TapGestureCollector.Delete(_view, TapAction);
     LongTapGestureCollector.Delete(_view, LongTapAction);
     _layer?.Dispose();
     _layer = null;
 }
示例#2
0
 public static void Init()
 {
     CommandsPlatform.Init();
     TouchEffectPlatform.Init();
     LongTapGestureCollector.Init();
     TapGestureCollector.Init();
 }
        protected override void OnAttached()
        {
            View.UserInteractionEnabled = true;

            TapGestureCollector.Add(View, TapAction);
            LongTapGestureCollector.Add(View, LongTapAction);
            UpdateEffectColor();
        }
        protected override void OnAttached()
        {
            _view = Control ?? Container;

            _view.UserInteractionEnabled = true;

            TapGestureCollector.Add(_view, TapAction);
            LongTapGestureCollector.Add(_view, LongTapAction);
            UpdateEffectColor();
        }
示例#5
0
 protected override void OnDetached()
 {
     TapGestureCollector.Delete(View, TapAction);
     LongTapGestureCollector.Delete(View, LongTapAction);
 }