Prima configurazione e struttura
This commit is contained in:
12
SteUp.Maui/Core/System/Network/NetworkService.cs
Normal file
12
SteUp.Maui/Core/System/Network/NetworkService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using SteUp.Shared.Core.Interface.System.Network;
|
||||
|
||||
namespace SteUp.Maui.Core.System.Network;
|
||||
|
||||
public class NetworkService : INetworkService
|
||||
{
|
||||
public bool ConnectionAvailable { get; set; }
|
||||
|
||||
public bool IsNetworkAvailable() =>
|
||||
Connectivity.Current.NetworkAccess == NetworkAccess.Internet;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user