API_Module_NetStatus.cs 747 B

1234567891011121314151617181920212223242526272829
  1. using SC.XR.Unity;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. public class API_Module_NetStatus
  7. {
  8. public static bool IsConnect()
  9. {
  10. return NetStatus.getInstance.SCIsConnectWifi();
  11. }
  12. public static string GetNetSpeedValue()
  13. {
  14. return NetStatus.getInstance.netSpeedStr;
  15. }
  16. public static WIFISTREGTH GetNetStrength()
  17. {
  18. return NetStatus.getInstance.SCGetWifiStrength();
  19. }
  20. public static void SetCallBack(Action<NetworkReachability, NetworkReachability> NetWorkChange)
  21. {
  22. NetStatus.getInstance.RegisterNetWorkChangeCallBack(NetWorkChange);
  23. }
  24. }