electron_api_desktop_capturer_mac.mm 406 B

1234567891011121314151617
  1. // Copyright (c) 2024 Salesforce, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include "shell/browser/api/electron_api_desktop_capturer.h"
  5. namespace electron::api {
  6. // static
  7. bool DesktopCapturer::IsDisplayMediaSystemPickerAvailable() {
  8. if (@available(macOS 15.0, *)) {
  9. return true;
  10. }
  11. return false;
  12. }
  13. } // namespace electron::api