canSwitchSpeakerphone property

bool canSwitchSpeakerphone

Implementation

bool get canSwitchSpeakerphone =>
    ((lkPlatformIs(PlatformType.iOS) && !_preferSpeakerOutput) ||
        lkPlatformIs(PlatformType.android)) &&
    [AudioTrackState.localOnly, AudioTrackState.localAndRemote]
        .contains(audioTrackState);