private static void initializePlatformServices()
 {
     if (!ServiceFinder.IsRegistered <IPlatformBridge>())
     {
         ServiceFinder.RegisterInstance <IPlatformBridge>(new IOSPlatformBridge());
     }
 }
 private static void initializePlatformServices(Context appContext)
 {
     if (!ServiceFinder.IsRegistered <IPlatformBridge>())
     {
         ServiceFinder.RegisterInstance <IPlatformBridge>(new AndroidPlatformBridge(appContext));
     }
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="T:AeroGear.Mobile.Security.DeviceChecks"/> class.
        /// Private so that it can't be instantiated externally: useful to emulate an enum.
        /// </summary>
        /// <param name="checkType">The class type of the check represented by this instance.</param>
        private DeviceChecks(Type checkType, string friendlyName = null)
        {
            if (!ServiceFinder.IsRegistered <IDeviceCheckFactory>())
            {
                ServiceFinder.RegisterInstance <IDeviceCheckFactory>(IOSDeviceCheckFactory.INSTANCE);
            }

            this.CheckType = checkType;
            typesByName[friendlyName ?? checkType.Name] = this;
        }