-
- All Implemented Interfaces:
-
androidx.lifecycle.DefaultLifecycleObserver,androidx.lifecycle.LifecycleObserver,kotlinx.coroutines.CoroutineScope
public class PLYDiagnosticManager implements CoroutineScope, DefaultLifecycleObserver
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineContextcoroutineContextpublic final static PLYDiagnosticManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanisRunningOnEmulator()Check if the app is running on an emulator or a debuggable device. final UnitaddLog(String log)Add log to the channel. UnitonStart(LifecycleOwner owner)Start tasks when the app is started or back in foreground. UnitonStop(LifecycleOwner owner)Stop tasks when the app is stopped or goes in background. CoroutineContextgetCoroutineContext()-
-
Method Detail
-
isRunningOnEmulator
final Boolean isRunningOnEmulator()
Check if the app is running on an emulator or a debuggable device.
-
onStart
Unit onStart(LifecycleOwner owner)
Start tasks when the app is started or back in foreground.
-
onStop
Unit onStop(LifecycleOwner owner)
Stop tasks when the app is stopped or goes in background.
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
-
-
-