Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added possibility to conditionally notify ViewModel about appearing/disappearing #569

Merged

Conversation

pavel-leonenko
Copy link
Contributor

Description

ViewControllerBase always calls ViewModel.OnAppearing method in ViewWillAppear, but sometimes it's needed to customize this logic. For example, we may need to skip calling this if the app is in background, and instead a ViewController would call ViewModel.OnAppearing only when the app is restored from background.

API Changes

Added:

  • protected virtual void NotifyViewModelAboutAppearing()
  • protected virtual void NotifyViewModelAboutDisappearing()

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

PR Checklist

  • I have read the CONTRIBUTING document
  • My code follows the code styles
  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@github-actions github-actions bot added c/wl Related to WhiteLabel component. p/iOS Related to iOS platform. labels Dec 2, 2024
@wcoder
Copy link
Member

wcoder commented Dec 2, 2024

ref: #510

@pavel-leonenko pavel-leonenko merged commit 6ae411d into project/PH1 Dec 5, 2024
1 check passed
@pavel-leonenko pavel-leonenko deleted the feature/support-for-handling-background branch December 5, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/wl Related to WhiteLabel component. p/iOS Related to iOS platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants