chore: add debug logging for registration and call state enums
This commit is contained in:
parent
f64284f963
commit
8d3e4cc652
1 changed files with 6 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ class LinphoneBridge(
|
||||||
private var currentCall: Call? = null
|
private var currentCall: Call? = null
|
||||||
|
|
||||||
private var registrationState: RegistrationState by Delegates.observable(RegistrationState.None) { _, oldValue, newValue ->
|
private var registrationState: RegistrationState by Delegates.observable(RegistrationState.None) { _, oldValue, newValue ->
|
||||||
|
RegistrationState.entries.forEach { e ->
|
||||||
|
Log.i(LiblinphoneFlutterPlugin.TAG, "RegistrationState | Name: ${e.name}, Ordinal: ${e.ordinal}")
|
||||||
|
}
|
||||||
Log.i(
|
Log.i(
|
||||||
LiblinphoneFlutterPlugin.TAG,
|
LiblinphoneFlutterPlugin.TAG,
|
||||||
"registrationState delegate: oldValue: $oldValue, newValue: $newValue"
|
"registrationState delegate: oldValue: $oldValue, newValue: $newValue"
|
||||||
|
|
@ -37,6 +40,9 @@ class LinphoneBridge(
|
||||||
onRegistrationStateChanged(newValue.ordinal)
|
onRegistrationStateChanged(newValue.ordinal)
|
||||||
}
|
}
|
||||||
private var callState: Call.State by Delegates.observable(Call.State.Idle) { _, oldValue, newValue ->
|
private var callState: Call.State by Delegates.observable(Call.State.Idle) { _, oldValue, newValue ->
|
||||||
|
Call.State.entries.forEach { e ->
|
||||||
|
Log.i(LiblinphoneFlutterPlugin.TAG, "RegistrationState | Name: ${e.name}, Ordinal: ${e.ordinal}")
|
||||||
|
}
|
||||||
Log.i(
|
Log.i(
|
||||||
LiblinphoneFlutterPlugin.TAG,
|
LiblinphoneFlutterPlugin.TAG,
|
||||||
"callState delegate: oldValue: $oldValue, newValue: $newValue"
|
"callState delegate: oldValue: $oldValue, newValue: $newValue"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue