Table of Contents

Method GetSwipeDirection

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetSwipeDirection(PointD, PointD)

Determines the swipe direction based on the movement from an initial point to an end point.

public static SwipeDirection GetSwipeDirection(PointD initialPoint, PointD endPoint)

Parameters

initialPoint PointD

The starting point of the swipe gesture.

endPoint PointD

The ending point of the swipe gesture.

Returns

SwipeDirection

A value of type SwipeDirection indicating the direction of the swipe, such as up, down, left, or right.