Android.OS.Vibrator.Vibrate Method
Vibrate constantly for the specified period of time.

Syntax

[Android.Runtime.Register("vibrate", "(JLandroid/media/AudioAttributes;)V", "GetVibrate_JLandroid_media_AudioAttributes_Handler")]
public virtual void Vibrate (long milliseconds, Android.Media.AudioAttributes attributes)

Parameters

milliseconds
The number of milliseconds to vibrate.
attributes
Android.Media.AudioAttributes corresponding to the vibration. For example, specify Android.Media.AudioAttributes.USAGE_ALARM for alarm vibrations or Android.Media.AudioAttributes.USAGE_NOTIFICATION_RINGTONE for vibrations associated with incoming calls.

Remarks

Vibrate constantly for the specified period of time.

This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#VIBRATE.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1