Struct FeedbackPatternStep
One step of a multi-pulse feedback pattern: an impulse plus the offset, in seconds, from the start of the pattern at which it should begin. v1 emits single-step patterns, but the shape lets richer patterns slot in without reshaping the API.
Inherited Members
Namespace: Serenity.Feedback.Domain.ValueObjects
Assembly: Serenity.Feedback.Domain.dll
Syntax
public readonly struct FeedbackPatternStep
Constructors
FeedbackPatternStep(FeedbackIntensity, float)
Initializes a new instance of the FeedbackPatternStep struct.
Declaration
public FeedbackPatternStep(FeedbackIntensity intensity, float startOffsetSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| FeedbackIntensity | intensity | The impulse played by this step. |
| float | startOffsetSeconds | Offset from the start of the pattern, in seconds. |
Fields
Intensity
Declaration
public readonly FeedbackIntensity Intensity
Field Value
| Type | Description |
|---|---|
| FeedbackIntensity | The impulse played by this step. |
StartOffsetSeconds
Declaration
public readonly float StartOffsetSeconds
Field Value
| Type | Description |
|---|---|
| float | Offset from the start of the pattern at which this step begins, in seconds. |