Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.AppStateEventNotifier
Notifies changes in app foreground/background.
Summary
Subscribe to AppStateEventNotifier.AppStateChanged to get notified of changes in AppState.
Properties
|
AppStateChanged
|
static Action< AppState >
Raised when the app enters the background/foreground.
|
Properties
AppStateChanged
static Action< AppState > AppStateChanged
Raised when the app enters the background/foreground.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[],["The `AppStateEventNotifier` monitors app state changes between foreground and background. Key action: Subscribe to the `AppStateChanged` event. This static event, of type `Action\u003cAppState\u003e`, is triggered whenever the app's state shifts. The `AppStateChanged` property notifies subscribers when the app moves into or out of the foreground.\n"],null,[]]