public ChatPageModel() { _chatsServices = new ChatsServices(); _lockeable = FreshIOC.Container.Resolve <ILockeable>(); _audioManager = FreshIOC.Container.Resolve <IAudioManager>(); _dateTimeHelper = FreshIOC.Container.Resolve <IDateTimeHelper>(); }
public NotificacionesPageModel() { _noticiasService = new NoticiasServices(); _planService = new PlanesServices(); _lockeable = FreshIOC.Container.Resolve <ILockeable>(); _audioManager = FreshIOC.Container.Resolve <IAudioManager>(); _dateTimeHelper = FreshIOC.Container.Resolve <IDateTimeHelper>(); }
public App() { InitializeComponent(); // Configurar idioma cada vez que el app inicializa ILocalize localizeDependency = DependencyService.Get <ILocalize>(); CultureInfo ci = localizeDependency.GetCurrentCultureInfo(); ConfigureCultureIdiomsApp(ci); // Inicializamos locker del app instance if (_lockeable == null) { _lockeable = FreshIOC.Container.Resolve <ILockeable>(); } // Solo se necesita inicializar sonidos cuando se reproduce un sound personalizado, con PlaySound // Si usar PlayNotificationDefaultSound no se necesita //// Inicializamos sonidos //if (Device.RuntimePlatform == Device.Android) //{ // InicializarSoundsFiles(); //} if (!string.IsNullOrWhiteSpace(RecordedPerson) && !string.IsNullOrWhiteSpace(RecordedIdiomPerson) && !string.IsNullOrWhiteSpace(RecordedUser) && !string.IsNullOrWhiteSpace(RecordedPasswordUser)) { MainPage = FreshPageModelResolver.ResolvePageModel <LottieLoadPageModel>(); } else { FreshNavigationContainer basicNavContainer = ConfigureNavigationContainer(); MainPage = basicNavContainer; } _appInicializada = true; }