UIFeedbackGenerator.Prepare Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If developers call this method, subsequent calls generating haptic feedback will have lower latency.
[Foundation.Export("prepare")]
public virtual void Prepare ();
abstract member Prepare : unit -> unit
override this.Prepare : unit -> unit
- Attributes
Remarks
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.