Package com.naver.ads.visibility
Object BackgroundDetector
-
- All Implemented Interfaces:
public class BackgroundDetectorDetector for background state changes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBackgroundDetector.BackgroundStateChangeCallbackA callback for background state changes.
-
Field Summary
Fields Modifier and Type Field Description public final static BackgroundDetectorINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitaddCallback(BackgroundDetector.BackgroundStateChangeCallback callback)Adds a callback for detect for background state changes. final static UnitremoveCallback(BackgroundDetector.BackgroundStateChangeCallback callback)Removes a callback for detect for background state changes. final static BooleanisInBackground()Returns the true if application is in background, false otherwise. -
-
Method Detail
-
addCallback
final static Unit addCallback(BackgroundDetector.BackgroundStateChangeCallback callback)
Adds a callback for detect for background state changes.
-
removeCallback
final static Unit removeCallback(BackgroundDetector.BackgroundStateChangeCallback callback)
Removes a callback for detect for background state changes.
-
isInBackground
final static Boolean isInBackground()
Returns the true if application is in background, false otherwise.
-
-
-
-