useFrontCamera method

Future<void> useFrontCamera(
  1. bool isEnable
)

切换摄像头,默认 YES 使用前置摄像头

  • Parameter isEnable: YES 使用前置摄像头;NO 使用后置摄像头

Implementation

Future<void> useFrontCamera(bool isEnable) async {
  Map map = {'callId': callId, 'isEnable': isEnable};
  await _methodChannel.invokeMethod('callUseFrontCamera', map);
}