コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: uptickguru/hwMobileApp
        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());
        }
コード例 #2
0
 static MainActivity()
 {
     if (falseflag)
     {
         var ignore = new LitePlatform();
     }
 }
コード例 #3
0
ファイル: TestPlatform.cs プロジェクト: WongKyle/xoff
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore(ApplicationData.Current.TemporaryFolder));
 }
コード例 #4
0
 public DatabaseService()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
     CreateDB();
 }
コード例 #5
0
ファイル: TestBase.cs プロジェクト: WongKyle/xoff
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformNetCore());
 }
コード例 #6
0
 public DatabaseQueryMethods()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
     CreateDB();
 }
コード例 #7
0
 public TestBase()
 {
     LitePlatform.InitializeDefault();
 }
コード例 #8
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformAndroid());
 }
コード例 #9
0
 public DatabaseDataLogStorage()
 {
     LitePlatform.Initialize(new LitePlatformFullDotNet());
 }
コード例 #10
0
 public PlaylistService(string name)
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
     Name = name;
     CreateDB();
 }
コード例 #11
0
ファイル: TestPlatform.cs プロジェクト: WongKyle/xoff
 public TestBase()
 {
     LitePlatform.Initialize(new LiteDB.Platform.LitePlatformFullDotNet());
 }
コード例 #12
0
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformWindowsStore());
 }
コード例 #13
0
ファイル: TestPlatform.cs プロジェクト: WongKyle/xoff
 public TestBase()
 {
     LitePlatform.Initialize(new LitePlatformiOS());
 }