onLocalProxyStateChanged method
FutureOr<void>
onLocalProxyStateChanged(
- dynamic localProxyType,
- dynamic localProxyState,
- dynamic localProxyError
override
@detail callback @author keshixing.rtc @brief Callback on local proxy connection. After calling setLocalProxy{@link #RTCEngine#setLocalProxy} to set local proxies, you will receive this callback that informs you of the states of local proxy connection. @param localProxyType The types of local proxies. Refer to LocalProxyType{@link #LocalProxyType} for details. @param localProxyState The states of local proxy connection. Refer to LocalProxyState{@link #LocalProxyState} for details. @param localProxyError The errors of local proxy connection. Refer to LocalProxyError{@link #LocalProxyError} for details.
Implementation
FutureOr<void> onLocalProxyStateChanged(dynamic localProxyType,
dynamic localProxyState, dynamic localProxyError) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onLocalProxyStateChanged?.call(
t_LocalProxyType.android_to_code($p_a.LocalProxyType.values.firstWhere(
(t) => t.$value == localProxyType || t.name == localProxyType)),
t_LocalProxyState.android_to_code($p_a.LocalProxyState.values
.firstWhere((t) =>
t.$value == localProxyState || t.name == localProxyState)),
t_LocalProxyError.android_to_code($p_a.LocalProxyError.values
.firstWhere((t) =>
t.$value == localProxyError || t.name == localProxyError)));
}