static void MaybeCreate ()
{
+#if MONOTOUCH_WATCH
+ throw new PlatformNotSupportedException ("NetworkInformation.NetworkChange is not supported on the current platform.");
+#else
if (networkChange != null)
return;
networkChange = new LinuxNetworkChange ();
#endif
}
+#endif // MONOTOUCH_WATCH
}
static void MaybeDispose ()
}
}
+#if !MONOTOUCH_WATCH
internal sealed class MacNetworkChange : INetworkChange
{
const string DL_LIB = "/usr/lib/libSystem.dylib";
availabilityChanged (null, new NetworkAvailabilityEventArgs (instance.IsAvailable));
}
}
+#endif // !MONOTOUCH_WATCH
#if !NETWORK_CHANGE_STANDALONE && !MONOTOUCH