UIFeedbackGenerator.Prepare UIFeedbackGenerator.Prepare Method


If developers call this method, subsequent calls generating haptic feedback will have lower latency.

public virtual void Prepare ();
abstract member Prepare : unit -> unit
override this.Prepare : unit -> unit


For this method to be effective, it must be called at least milliseconds before requesting haptic feedback. The haptic engine will return to an idle state after feedback is generated, after several seconds, or if this is garbage-collected.

Applies to