SoundPool.Builder.SetAudioSessionId(Int32) 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 session ID the SoundPool will be attached to.
[Android.Runtime.Register("setAudioSessionId", "(I)Landroid/media/SoundPool$Builder;", "GetSetAudioSessionId_IHandler", ApiSince=34)]
public virtual Android.Media.SoundPool.Builder SetAudioSessionId(int sessionId);
[<Android.Runtime.Register("setAudioSessionId", "(I)Landroid/media/SoundPool$Builder;", "GetSetAudioSessionId_IHandler", ApiSince=34)>]
abstract member SetAudioSessionId : int -> Android.Media.SoundPool.Builder
override this.SetAudioSessionId : int -> Android.Media.SoundPool.Builder
Parameters
- sessionId
- Int32
a strictly positive ID number retrieved from another player or allocated by AudioManager via AudioManager.generateAudioSessionId(), or AudioManager.AUDIO_SESSION_ID_GENERATE.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the session ID the SoundPool will be attached to. Note, that if there's a device specific session id associated with the context (see Builder.setContext(Context) ), explicitly setting a session id using this method will override it.
Android reference for android.media.SoundPool.Builder.setAudioSessionId.
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.