mattermost-mobile-upstream/app/products/calls/actions/index.ts
Elias Nahum 6edb76ec68
replace react-native-incall-manager with @mattermost/calls-native for audio management (#9973)
* replace react-native-incall-manager with @mattermost/calls-native for audio management

Removes react-native-incall-manager entirely and implements audio session
lifecycle, route selection, and ringtone playback directly in calls-native
on both iOS (AVAudioSession) and Android (AudioManager). Adds smart
priority-based auto-routing (BT > WiredHeadset > Earpiece) with user-intent
pinning. Unifies AudioDevice/AudioRoute types in calls-native as the single
source of truth.

* feedback review

* feedback on tests

* feedback review

* have callkit use the ringtone selected by the user

* feedback review

* destroy db after test

* route to wired headset on android

* Android bring back vibration
2026-08-06 07:38:54 +08:00

36 lines
765 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export {
loadConfig,
loadCalls,
enableChannelCalls,
joinCall,
leaveCall,
muteMyself,
unmuteMyself,
raiseHand,
unraiseHand,
handleCallsSlashCommand,
startCallRecording,
stopCallRecording,
dismissIncomingCall,
hostMake,
hostMuteSession,
hostMuteOthers,
hostStopScreenshare,
hostLowerHand,
hostRemove,
setPreferredAudioRoute,
initializeVoiceTrack,
sendReaction,
endCall,
loadCallForChannel,
loadConfigAndCalls,
checkIsCallsPluginEnabled,
canEndCall,
getEndCallMessage,
} from './calls';
export {hasMicrophonePermission} from './permissions';