mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
add enablement of bluetooth to bluetooth button
This commit is contained in:
parent
c252377b00
commit
68b319527f
1 changed files with 2 additions and 4 deletions
|
|
@ -31,13 +31,11 @@
|
|||
LOGE(@"UIBluetoothButton error for %s: ret=%ld", method, au)
|
||||
|
||||
- (void)onOn {
|
||||
// AVAudioSessionPortDescription *_bluetoothPort = [AudioHelper bluetoothAudioDevice];
|
||||
//[[AVAudioSession sharedInstance] setPreferredInput:_bluetoothPort error:nil];
|
||||
[LinphoneManager.instance setBluetoothEnabled:TRUE];
|
||||
}
|
||||
|
||||
- (void)onOff {
|
||||
// AVAudioSessionPortDescription *builtinPort = [AudioHelper builtinAudioDevice];
|
||||
//[[AVAudioSession sharedInstance] setPreferredInput:builtinPort error:nil];
|
||||
[LinphoneManager.instance setBluetoothEnabled:FALSE];
|
||||
}
|
||||
|
||||
- (bool)onUpdate {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue