IHaptics

Provides native device haptic feedback.
public interface IHaptics

Methods

Impact

Triggers impact feedback to simulate physical weight or collisions.

void Impact(
  HapticStyle style = Medium)
ParameterSummary
(optional) HapticStyle styleThe weight profile of the impact sensation.

Notify

Triggers notification feedback for successes, warnings, or errors.

void Notify(
  HapticsNotification notification)
ParameterSummary
HapticsNotification notificationThe event type being signaled.

Play

Plays a custom haptic pattern built from taps and sustained vibrations.

void Play(
  params ReadOnlySpan<HapticEvent> events)
ParameterSummary
ReadOnlySpan<HapticEvent> eventsThe events making up the pattern, timed from its start.

Selection

Triggers subtle feedback indicating a user selection change.

void Selection()