startAudioshare

@RequiresApi(value = 29)
fun startAudioshare(hmsActionResultListener: HMSActionResultListener, mediaProjectionPermissionResultData: Intent?, audioMixingMode: AudioMixingMode = AudioMixingMode.TALK_AND_MUSIC, audioShareNotification: Notification? = null)

API to start audio share of your android device. Only supported on Android 10 and above

Parameters

hmsActionResultListener

A callback instance on which HMSActionResultListener.onSuccess and HMSActionResultListener.onError will be called

mediaProjectionPermissionResultData

The intent passed by Android OS in onActivityResult callback

audioMixingMode

One out of the modes in AudioMixingMode that is needed while mixing audio

audioShareNotification

a sticky notification to show while audio share is active. If null a default one will be created.