protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.infection_status); _viewModel = new InfectionStatusViewModel(); InitLayout(); UpdateMessagesStatus(); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_MESSAGE_STATUS_UPDATED, OnMessageStatusChanged); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_UPDATE_DAILY_NUMBERS, OnAppDailyNumbersChanged); if (IsAppLaunchedToPullKeys) { UpdateKeys(); IsAppLaunchedToPullKeys = false; } CheckIfShowBackgroundActivityDialog(); if (!GetIsBackgroundActivityDialogShowEnableNewUser() && GetIsBackgroundActivityDialogShowEnable() && !CheckIsEnableBatteryOptimizations() && IsAppLaunchedToShowDialog && (SystemTime.Now().Date != DialogLastShownDate)) { ShowBackgroundActivityDialog(); DialogLastShownDate = SystemTime.Now().Date; } }
public override void ViewDidLoad() { base.ViewDidLoad(); _viewModel = new InfectionStatusViewModel(); SetupStyling(); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_APP_RETURNS_FROM_BACKGROUND, OnAppReturnsFromBackground); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.infection_status); _viewModel = new InfectionStatusViewModel(); InitLayout(); UpdateMessagesStatus(); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_MESSAGE_STATUS_UPDATED, OnMessageStatusChanged); }
public override void ViewDidLoad() { base.ViewDidLoad(); _viewModel = new InfectionStatusViewModel(); SetupStyling(); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_MESSAGE_STATUS_UPDATED, OnMessageStatusChanged); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_APP_RETURNS_FROM_BACKGROUND, OnAppReturnsFromBackground); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_CONSENT_MODAL_IS_CLOSED, OnConsentModalIsClosed); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); this.Title = INFECTION_STATUS_PAGE_TITLE; SetContentView(Resource.Layout.infection_status); _viewModel = new InfectionStatusViewModel(); InitLayout(); UpdateMessagesStatus(); }
public override void ViewDidLoad() { base.ViewDidLoad(); _viewModel = new InfectionStatusViewModel(); View.AddLayoutGuide(_focusGuide); _focusGuide.LeftAnchor.ConstraintEqualTo(MenuIcon.LeftAnchor).Active = true; _focusGuide.RightAnchor.ConstraintEqualTo(MenuIcon.RightAnchor).Active = true; _focusGuide.TopAnchor.ConstraintEqualTo(OnOffBtn.TopAnchor).Active = true; _focusGuide.BottomAnchor.ConstraintEqualTo(OnOffBtn.BottomAnchor).Active = true; SetupStyling(); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_MESSAGE_STATUS_UPDATED, OnMessageStatusChanged); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_APP_RETURNS_FROM_BACKGROUND, OnAppReturnsFromBackground); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_CONSENT_MODAL_IS_CLOSED, OnConsentModalIsClosed); }
public override void ViewDidLoad() { base.ViewDidLoad(); _viewModel = new InfectionStatusViewModel(); View.AddLayoutGuide(_focusGuide); _focusGuide.LeadingAnchor.ConstraintEqualTo(MenuIcon.LeadingAnchor).Active = true; _focusGuide.TrailingAnchor.ConstraintEqualTo(MenuIcon.TrailingAnchor).Active = true; _focusGuide.TopAnchor.ConstraintEqualTo(OnOffBtn.TopAnchor).Active = true; _focusGuide.BottomAnchor.ConstraintEqualTo(OnOffBtn.BottomAnchor).Active = true; MenuLabel.AddGestureRecognizer(new UITapGestureRecognizer(() => { OnMenubtnTapped(MenuIcon); })); MenuLabel.IsAccessibilityElement = false; SetupStyling(); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_MESSAGE_STATUS_UPDATED, OnMessageStatusChanged); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_APP_RETURNS_FROM_BACKGROUND, OnAppReturnsFromBackground); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_CONSENT_MODAL_IS_CLOSED, OnConsentModalIsClosed); MessagingCenter.Subscribe <object>(this, MessagingCenterKeys.KEY_UPDATE_DAILY_NUMBERS, OnAppDailyNumbersChanged); }