Android.Media.MediaSyncEvent.SetAudioSessionId Method
Sets the event source audio session ID.

Syntax

[Android.Runtime.Register("setAudioSessionId", "(I)Landroid/media/MediaSyncEvent;", "GetSetAudioSessionId_IHandler")]
public virtual MediaSyncEvent SetAudioSessionId (int audioSessionId)

Parameters

audioSessionId
the audio session ID of the event source being monitored.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentException

Remarks

Sets the event source audio session ID.

The audio session ID specifies on which audio session the synchronization event should be monitored. It is mandatory for certain event types (e.g. MediaSyncEvent.SyncEventPresentationComplete). For instance, the audio session ID can be retrieved via MediaPlayer.AudioSessionId when monitoring an event on a particular MediaPlayer.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16