int Position { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Position property of the HapticPattern class represents the current position within the haptic pattern. It is an integer value that indicates the specific point in the pattern's sequence of frequency and amplitude changes.

Usage

Use the Position property to get or set the current position within a haptic pattern. This can be useful for tracking progress through the pattern or for resetting the pattern to a specific point.

Example

// Example of using the Position property
HapticPattern pattern = new HapticPattern();

// Set the position to the start of the pattern
pattern.Position = 0;

// Get the current position
int currentPosition = pattern.Position;

// Output the current position
// Note: Use a logging system instead of Console.WriteLine
Log.Info($"Current Position: {currentPosition}");