setForeground method
- bool foreground
Override the SDK's foreground state. Not needed: the native SDK observes the app lifecycle itself — polling and the attribute/session flush run while the app is in front and pause in the background. A manual call is honoured until the next lifecycle transition.
Implementation
Future<void> setForeground(bool foreground) => _platform.setForeground(foreground);