AudioManager.AdjustSuggestedStreamVolume 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.
Adjusts the volume of the most relevant stream, or the given fallback stream.
[Android.Runtime.Register("adjustSuggestedStreamVolume", "(III)V", "GetAdjustSuggestedStreamVolume_IIIHandler")]
public virtual void AdjustSuggestedStreamVolume (Android.Media.Adjust direction, Android.Media.Stream suggestedStreamType, Android.Media.VolumeNotificationFlags flags);
[<Android.Runtime.Register("adjustSuggestedStreamVolume", "(III)V", "GetAdjustSuggestedStreamVolume_IIIHandler")>]
abstract member AdjustSuggestedStreamVolume : Android.Media.Adjust * Android.Media.Stream * Android.Media.VolumeNotificationFlags -> unit
override this.AdjustSuggestedStreamVolume : Android.Media.Adjust * Android.Media.Stream * Android.Media.VolumeNotificationFlags -> unit
Parameters
- direction
- Adjust
The direction to adjust the volume. One of
#ADJUST_LOWER
, #ADJUST_RAISE
,
#ADJUST_SAME
, #ADJUST_MUTE
,
#ADJUST_UNMUTE
, or #ADJUST_TOGGLE_MUTE
.
- suggestedStreamType
- Stream
The stream type that will be used if there
isn't a relevant stream. #USE_DEFAULT_STREAM_TYPE
is
valid here.
- flags
- VolumeNotificationFlags
flags
- Attributes
Remarks
Adjusts the volume of the most relevant stream, or the given fallback stream.
This method should only be used by applications that replace the platform-wide management of audio settings or the main telephony application.
This method has no effect if the device implements a fixed volume policy as indicated by #isVolumeFixed()
.
Java documentation for android.media.AudioManager.adjustSuggestedStreamVolume(int, 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
- <xref:Android.Media.AudioManager.AdjustVolume(Android.Media.Adjust%2c+Android.Media.VolumeNotificationFlags)>
- <xref:Android.Media.AudioManager.AdjustStreamVolume(Android.Media.Stream%2c+Android.Media.Adjust%2c+Android.Media.Adjust)>
- <xref:Android.Media.AudioManager.SetStreamVolume(Android.Media.Stream%2c+System.Int32%2c+System.Int32)>
- IsVolumeFixed