Exemplo n.º 1
0
        private void SetIoc()
        {
            Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();

            LitePlatform.Initialize(new LitePlatformiOS());

            var app = new XFormsAppiOS();

            app.Init(this);

            var resolverContainer = new SimpleContainer();

            resolverContainer.Register <IDevice>(t => AppleDevice.CurrentDevice)
            .Register <IDisplay>(t => t.Resolve <IDevice>().Display)
            .Register <IFontManager>(t => new FontManager(t.Resolve <IDisplay>()))
            .Register <IGeolocator>(t => new Geolocator())
            .Register <ITextToSpeechService, TextToSpeechService>()
            .Register <IEmailService, EmailService>()
            .Register <IMediaPicker, MediaPicker>()
            .Register <ISecureStorage, SecureStorage>()
            .Register <IDependencyContainer>(t => resolverContainer);

            Resolver.SetResolver(resolverContainer.GetResolver());
        }
Exemplo n.º 2
0
 static MainActivity()
 {
     if (falseflag)
     {
         var ignore = new LitePlatform();
     }
 }
Exemplo n.º 3
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore(ApplicationData.Current.TemporaryFolder));
 }
Exemplo n.º 4
0
 public DatabaseService()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
     CreateDB();
 }
Exemplo n.º 5
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformNetCore());
 }
 public DatabaseQueryMethods()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
     CreateDB();
 }
Exemplo n.º 7
0
 public TestBase()
 {
     LitePlatform.InitializeDefault();
 }
Exemplo n.º 8
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformAndroid());
 }
 public DatabaseDataLogStorage()
 {
     LitePlatform.Initialize(new LitePlatformFullDotNet());
 }
Exemplo n.º 10
0
 public PlaylistService(string name)
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
     Name = name;
     CreateDB();
 }
Exemplo n.º 11
0
 public TestBase()
 {
     LitePlatform.Initialize(new LiteDB.Platform.LitePlatformFullDotNet());
 }
Exemplo n.º 12
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
 }
Exemplo n.º 13
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformiOS());
 }