-
- All Implemented Interfaces:
-
com.onesignal.core.internal.application.IApplicationLifecycleHandler
public class ApplicationLifecycleHandlerBase implements IApplicationLifecycleHandler
A base implementation of IApplicationLifecycleHandler that is a no-op. Concrete implementations can use this if they only want to override a subset of the callbacks that make up this interface.
-
-
Constructor Summary
Constructors Constructor Description ApplicationLifecycleHandlerBase()
-
Method Summary
Modifier and Type Method Description UnitonFocus(Boolean firedOnSubscribe)Called when the application is brought into the foreground. UnitonUnfocused()Called when the application has been brought out of the foreground, to the background. -
-
Method Detail
-
onFocus
Unit onFocus(Boolean firedOnSubscribe)
Called when the application is brought into the foreground. This callback can be fired immediately on subscribing to the IApplicationService (when the IApplicationService itself is started too late to capture the application's early lifecycle events), or through natural application lifecycle callbacks.
- Parameters:
firedOnSubscribe- Method is fired from subscribing or from application lifecycle callbacks
-
onUnfocused
Unit onUnfocused()
Called when the application has been brought out of the foreground, to the background.
-
-
-
-