Package io.flutter.embedding.engine.plugins.service

# Interface ServiceAware.OnModeChangeListener

Enclosing interface:
  ServiceAware

public static interface ServiceAware.OnModeChangeListener

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onMoveToBackground()`
  Callback triggered when the associated `Service` goes from foreground execution to background execution.
  `void`
  `onMoveToForeground()`
  Callback triggered when the associated `Service` goes from background execution to foreground execution.

- ## Method Details

  - ### onMoveToForeground

    void onMoveToForeground()
    Callback triggered when the associated `Service` goes from background execution to foreground execution.

  - ### onMoveToBackground

    void onMoveToBackground()
    Callback triggered when the associated `Service` goes from foreground execution to background execution.