Exemple #1
0
        static CrossBleAdapter()
        {
            Current = new Adapter();
#if __MACOS__
            AdapterScanner = new AdapterScanner();
#else
            AdapterScanner = new NotSupportedAdapterScanner();
#endif
        }
        static CrossBleAdapter()
        {
            Current        = new Adapter();
            AdapterScanner = new AdapterScanner();

            AndroidConfiguration.IsMainThreadSuggested = Build.VERSION.SdkInt < BuildVersionCodes.Kitkat || (
                Build.VERSION.SdkInt < BuildVersionCodes.N &&
                Build.Manufacturer.Equals("samsung", StringComparison.CurrentCultureIgnoreCase)
                );

            AndroidConfiguration.IsServerSupported        = Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop;
            AndroidConfiguration.UseNewScanner            = Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop;
            AndroidConfiguration.ShouldInvokeOnMainThread = true;
        }
 static CrossBleAdapter()
 {
     Current        = new Adapter();
     AdapterScanner = new AdapterScanner();
 }