init method

void init(
  1. Context context
)

Implementation

void init(Context context) {
  this.context = context;
  TUILiveKitPlatform.instance.onPipModeChanged.listen((isPipMode) {
    floatWindowState.pipMode.value = isPipMode;
  });
  floatWindowState.pipMode.addListener(_onPipModeChangedListener);
  floatWindowState.floatWindowMode.addListener(_onFloatWindowModeChangedListener);
}