C# Class Bloom.web.UrlLookup

Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
IsInternetAvailable ( ) : bool

Check whether or not the internet is currently available. This may delay 2.5 seconds if the computer is on a local network, but the internet is inaccessible.

credit is due to http://stackoverflow.com/questions/520347/how-do-i-check-for-a-network-connection and https://forums.xamarin.com/discussion/19491/check-internet-connectivity.

LookupUrl ( UrlType urlType, bool sandbox = false, bool excludeProtocolPrefix = false ) : string

Private Methods

Method Description
GetSandboxUrlType ( UrlType urlType ) : UrlType
LookupFallbackUrl ( UrlType urlType ) : string
LookupFullUrl ( UrlType urlType, bool sandbox = false ) : string
StripProtocol ( string fullUrl ) : string
TryLookupUrl ( UrlType urlType, string &url ) : bool

Method Details

IsInternetAvailable() public static method

Check whether or not the internet is currently available. This may delay 2.5 seconds if the computer is on a local network, but the internet is inaccessible.
credit is due to http://stackoverflow.com/questions/520347/how-do-i-check-for-a-network-connection and https://forums.xamarin.com/discussion/19491/check-internet-connectivity.
public static IsInternetAvailable ( ) : bool
return bool

LookupUrl() public static method

public static LookupUrl ( UrlType urlType, bool sandbox = false, bool excludeProtocolPrefix = false ) : string
urlType UrlType
sandbox bool
excludeProtocolPrefix bool
return string