action_enable_audio method
bool
action_enable_audio({
- required void onCameraNotInit(),
- required void onCameraNotSelect(),
- required void onCameraNotActive(),
Implementation
bool action_enable_audio({
required void Function() onCameraNotInit,
required void Function() onCameraNotSelect,
required void Function() onCameraNotActive,
}) {
bool is_check_camera = util_check_camera(
onCameraNotInit: onCameraNotInit,
onCameraNotSelect: onCameraNotSelect,
onCameraNotActive: onCameraNotActive,
);
if (!is_check_camera) {
return false;
}
if (isMobile) {
return camera_mobile_controller.enableAudio;
} else if (isDesktop) {
if (Platform.isWindows) {}
}
return false;
}