public void HandleLongPress(object sender, EventArgs e) { LongPressEvent?.Invoke(this, e); var kkk = DependencyService.Get <IAlertClass>(); kkk.ShowAlert(); }
private void DoLongPress() { LongPressEvent?.Invoke(PressedPos); //这里不初始化,是为了触发长按之后还能继续拖动, // Init(); m_isPressed = true; }
void LongPressing(float second) { if (onLongPressing != null) { onLongPressing.Invoke(second); } }
public void RaiseLongPressEvent() { if (IsEnabled) { LongPressEvent?.Invoke(this, EventArgs.Empty); } }
void LongPressAbort(float second) { if (onLongPressAbort != null) { onLongPressAbort.Invoke(second); } ResetLongPressTime(); }
void LongPressed(float second) { if (onLongPressed != null) { onLongPressed.Invoke(second); } ResetLongPressTime(); }
private void DoLongPress() { LongPressEvent?.Invoke(); Init(); }