AudioAttributes.Builder.SetHapticChannelsMuted(Boolean) 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.
Specifying if haptic should be muted or not when playing audio-haptic coupled data.
[Android.Runtime.Register("setHapticChannelsMuted", "(Z)Landroid/media/AudioAttributes$Builder;", "GetSetHapticChannelsMuted_ZHandler", ApiSince=29)]
public virtual Android.Media.AudioAttributes.Builder SetHapticChannelsMuted(bool muted);
[<Android.Runtime.Register("setHapticChannelsMuted", "(Z)Landroid/media/AudioAttributes$Builder;", "GetSetHapticChannelsMuted_ZHandler", ApiSince=29)>]
abstract member SetHapticChannelsMuted : bool -> Android.Media.AudioAttributes.Builder
override this.SetHapticChannelsMuted : bool -> Android.Media.AudioAttributes.Builder
Parameters
- muted
- Boolean
true to force muting haptic channels.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Specifying if haptic should be muted or not when playing audio-haptic coupled data. By default, haptic channels are disabled. This will be ignored if the caller doesn't have the Manifest.permission.VIBRATE permission.
Android reference for android.media.AudioAttributes.Builder.setHapticChannelsMuted.
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.