protected UwpPlatformConfigBase() { CachedImageRenderer.Init(); var ignoreImage = typeof(SvgCachedImage); var ignoreTransformation = typeof(GrayscaleTransformation); CodeBrixApplication.SetDefaultContainer(Container); PlatformInfoService.Initialize(); Action <IContainerRegistry> registerTypesAction = containerRegistry => { //First do any CodeBrix-internal platform-specific registrations here Container.Register(() => new MobileFileService(), typeof(ILocalFileService)); Container.Register(() => new PlatformInfoService(), typeof(IPlatformInfoService)); //Then call the application's RegisterTypes method RegisterTypes(Container); };
protected AndroidPlatformConfigBase(Activity mainActivity, Bundle bundle) { _mainActivity = mainActivity ?? throw new ArgumentNullException(nameof(mainActivity)); _bundle = bundle; //TODO: So far, don't have a need for the bundle, so not throwing an error when it is null CachedImageRenderer.Init(); var ignoreImage = typeof(SvgCachedImage); var ignoreTransformation = typeof(GrayscaleTransformation); Acr.UserDialogs.UserDialogs.Init(_mainActivity); CodeBrixApplication.SetDefaultContainer(Container); PlatformInfoService.Initialize(this); Action <IContainerRegistry> registerTypesAction = containerRegistry => { //First do any CodeBrix-internal platform-specific registrations here Container.Register(() => new MobileFileService(), typeof(ILocalFileService)); Container.Register(() => new PlatformInfoService(), typeof(IPlatformInfoService)); //Then call the application's RegisterTypes method RegisterTypes(Container); };