AppForegroundBackgroundListener

public protocol AppForegroundBackgroundListener : AnyObject

Listener to app state changes (Foreground, background, etc)

  • Add When application comes to the foreground

    Declaration

    Swift

    func onAppForeground()
  • Add When application goes to the background

    Declaration

    Swift

    func onAppBackground()