public void HandleLongPress(object sender, EventArgs e)
        {
            LongPressEvent?.Invoke(this, e);
            var kkk = DependencyService.Get <IAlertClass>();

            kkk.ShowAlert();
        }
Пример #2
0
 private void DoLongPress()
 {
     LongPressEvent?.Invoke(PressedPos);
     //这里不初始化,是为了触发长按之后还能继续拖动,
     // Init();
     m_isPressed = true;
 }
Пример #3
0
 void LongPressing(float second)
 {
     if (onLongPressing != null)
     {
         onLongPressing.Invoke(second);
     }
 }
 public void RaiseLongPressEvent()
 {
     if (IsEnabled)
     {
         LongPressEvent?.Invoke(this, EventArgs.Empty);
     }
 }
Пример #5
0
 void LongPressAbort(float second)
 {
     if (onLongPressAbort != null)
     {
         onLongPressAbort.Invoke(second);
     }
     ResetLongPressTime();
 }
Пример #6
0
 void LongPressed(float second)
 {
     if (onLongPressed != null)
     {
         onLongPressed.Invoke(second);
     }
     ResetLongPressTime();
 }
Пример #7
0
 private void DoLongPress()
 {
     LongPressEvent?.Invoke();
     Init();
 }