IVibration.Vibrate 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.
Overloads
Vibrate() |
Vibrates the device for 500ms. |
Vibrate(TimeSpan) |
Vibrates the device for the specified time in the range [0, 5000]ms. |
Vibrate()
- Source:
- Vibration.shared.cs
- Source:
- Vibration.shared.cs
Vibrates the device for 500ms.
public:
void Vibrate();
public void Vibrate ();
abstract member Vibrate : unit -> unit
Public Sub Vibrate ()
Applies to
Vibrate(TimeSpan)
- Source:
- Vibration.shared.cs
- Source:
- Vibration.shared.cs
Vibrates the device for the specified time in the range [0, 5000]ms.
public:
void Vibrate(TimeSpan duration);
public void Vibrate (TimeSpan duration);
abstract member Vibrate : TimeSpan -> unit
Public Sub Vibrate (duration As TimeSpan)
Parameters
- duration
- TimeSpan
The time to vibrate for. This value will be ignored on iOS as it only supports a vibration of 500ms.
Remarks
On iOS, the device will only vibrate for 500ms, regardless of the value specified.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.