共用方式為


Context.VibratorService Field

Definition

Use with #getSystemService(String) to retrieve a android.os.Vibrator for interacting with the vibration hardware.

[Android.Runtime.Register("VIBRATOR_SERVICE")]
public const string VibratorService;
[<Android.Runtime.Register("VIBRATOR_SERVICE")>]
val mutable VibratorService : string

Field Value

Attributes

Remarks

Use with #getSystemService(String) to retrieve a android.os.Vibrator for interacting with the vibration hardware.

This member is deprecated. Use android.os.VibratorManager to retrieve the default system vibrator.

Java documentation for android.content.Context.VIBRATOR_SERVICE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also