次の方法で共有


AudioManager.SetVibrateSetting(VibrateType, VibrateSetting) Method

Definition

Caution

deprecated

Sets the setting for when the vibrate type should vibrate.

[Android.Runtime.Register("setVibrateSetting", "(II)V", "GetSetVibrateSetting_IIHandler")]
[System.Obsolete("deprecated")]
public virtual void SetVibrateSetting (Android.Media.VibrateType vibrateType, Android.Media.VibrateSetting vibrateSetting);
[<Android.Runtime.Register("setVibrateSetting", "(II)V", "GetSetVibrateSetting_IIHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetVibrateSetting : Android.Media.VibrateType * Android.Media.VibrateSetting -> unit
override this.SetVibrateSetting : Android.Media.VibrateType * Android.Media.VibrateSetting -> unit

Parameters

vibrateType
VibrateType

The type of vibrate. One of #VIBRATE_TYPE_NOTIFICATION or #VIBRATE_TYPE_RINGER.

vibrateSetting
VibrateSetting

The vibrate setting, one of #VIBRATE_SETTING_ON, #VIBRATE_SETTING_OFF, or #VIBRATE_SETTING_ONLY_SILENT.

Attributes

Remarks

Sets the setting for when the vibrate type should vibrate.

This method should only be used by applications that replace the platform-wide management of audio settings or the main telephony application.

This member is deprecated. Applications should maintain their own vibrate policy based on current ringer mode that can be queried via #getRingerMode().

Java documentation for android.media.AudioManager.setVibrateSetting(int, int).

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