virtualBackgroundSourceEnabled property
Reports whether virtual background is successfully enabled. (beta feature) Since v3.5.0 After you call enableVirtualBackground , the SDK triggers this callback to report whether virtual background is successfully enabled. If the background image customized in the virtual background is in the PNG or JPG format, this callback is triggered after the image is read.
Param enabled
Whether virtual background is successfully enabled: true: Virtual background is successfully enabled.
false: Virtual background is not successfully enabled.
Param reason
The reason why virtual background is not successfully enabled. See VirtualBackgroundSourceStateReason .
Implementation
VirtualBackgroundSourceEnabledCallback? virtualBackgroundSourceEnabled;