getVirtualBackgroundItemList method
Get virtual background item list.
If the function succeeds, the return value is a list of ZoomVideoSDKVirtualBackgroundItem
object.
Implementation
@override
Future<List<ZoomVideoSdkVirtualBackgroundItem>> getVirtualBackgroundItemList() async {
var itemListString = await methodChannel
.invokeMethod<String?>('getVirtualBackgroundItemList')
.then<String?>((String? value) => value);
var itemListJson = jsonDecode(itemListString!) as List;
List<ZoomVideoSdkVirtualBackgroundItem> itemList = itemListJson
.map((languageJson) =>
ZoomVideoSdkVirtualBackgroundItem.fromJson(languageJson))
.toList();
return itemList;
}