123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using SC.XR.Unity;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class API_Module_NetStatus
- {
- public static bool IsConnect()
- {
- return NetStatus.Instance.SCIsConnectWifi();
- }
- public static string GetNetSpeedValue()
- {
- return NetStatus.Instance.SCGetNetSpeed();
- }
- public static WIFISTREGTH GetNetStrength()
- {
- return NetStatus.Instance.SCGetWifiStrength();
- }
- public static string GetNetStatus()
- {
- return NetStatus.Instance.SCGetNetStatus();
- }
- public static string GetNetIPAddress()
- {
- return NetStatus.Instance.SCGetIP();
- }
- public static string GetMacAddress()
- {
- return NetStatus.Instance.SCGetMacAddress();
- }
- public static void SetCallBack(Action<NetworkReachability, NetworkReachability> NetWorkChange)
- {
- NetStatus.Instance.RegisterNetWorkChangeCallBack(NetWorkChange);
- }
- }
|