System.register(["cc"], function (_export, _context) {
  "use strict";

  var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, native, sys, PlatformUtil, _crd;

  _export("PlatformUtil", void 0);

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      native = _cc.native;
      sys = _cc.sys;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "c08229jnmdPP5vR721N6GG9", "PlatformUtil", undefined);
      /*
       * @Date: 2021-08-14 16:17:03
       * @LastEditors: dgflash
       * @LastEditTime: 2022-09-02 14:39:03
       */


      /** 平台数据 */
      __checkObsolete__(['__private', 'native', 'sys']);

      _export("PlatformUtil", PlatformUtil = class PlatformUtil {
        /** 获取当前设备的网络类型, 如果网络类型无法获取，默认将返回 `sys.NetworkType.LAN` */
        getNetworkType() {
          return sys.getNetworkType();
        }
        /**
         * 获取当前设备的电池电量，如果电量无法获取，默认将返回 1
         * @return - 0.0 ~ 1.0
         */


        getBatteryLevel() {
          return sys.getBatteryLevel();
        }
        /** 尝试打开一个 web 页面，并非在所有平台都有效 */


        openURL(url) {
          sys.openURL(url);
        }
        /** 拷贝字符串到剪切板 */


        copyText(text) {
          native.copyTextToClipboard(text);
        }

      });

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=ad71acc7a6ba7cbe711fbbfdd2cd6804d83b03e2.js.map