Edit

Bagikan melalui


UIFeedbackGenerator.Prepare Method

Definition

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.

Applies to