AudioFocusRequestClass.Builder.SetFocusGain(AudioFocus) 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.
Sets the type of focus gain that will be requested.
[Android.Runtime.Register("setFocusGain", "(I)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)]
public Android.Media.AudioFocusRequestClass.Builder SetFocusGain(Android.Media.AudioFocus focusGain);
[<Android.Runtime.Register("setFocusGain", "(I)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)>]
member this.SetFocusGain : Android.Media.AudioFocus -> Android.Media.AudioFocusRequestClass.Builder
Parameters
- focusGain
- AudioFocus
the type of audio focus gain that will be requested.
Returns
this Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the type of focus gain that will be requested. Use this method to replace the focus gain when building a request by modifying an existing AudioFocusRequest instance.
Android reference for android.media.AudioFocusRequest.Builder.setFocusGain.
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.