How to set Mute

vb1992

Well-Known Member
Licensed User
Longtime User
SetVolume (Channel As Int, VolumeIndex As Int, ShowUI As Boolean)

Sets the volume of the specified channel.

Channel - One of the VOLUME constants.

VolumeIndex - The volume index.

ShowUI - Whether to show the volume UI windows.

Example:
Dim p As Phone
p.SetVolume(p.VOLUME_MUSIC, 0, false)
 
Upvote 0
Top