Adds support for toggling the speaker on/off during a call (Android and iOS). In my tests on both platforms the system resets the speaker state when a call is started, so it is safe to toggle on and then have the call end without toggling back off programmatically.
Usage: TwilioPhone.toggleSpeaker(true); // or false to go back to handset speaker
Also it looks like Xcode went and made a bunch of formatting changes to TwilioPhone.swift, sorry about that.
Adds support for toggling the speaker on/off during a call (Android and iOS). In my tests on both platforms the system resets the speaker state when a call is started, so it is safe to toggle on and then have the call end without toggling back off programmatically.
Usage:
TwilioPhone.toggleSpeaker(true); // or false to go back to handset speaker
Also it looks like Xcode went and made a bunch of formatting changes to
TwilioPhone.swift
, sorry about that.