-
- 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 <ERROR CLASS>addLog(String log)Add log to the logs file. UnitonStart(LifecycleOwner owner)Start periodicTaskJob when the app is started or back in foreground. UnitonStop(LifecycleOwner owner)Cancel periodicTaskJob 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 periodicTaskJob when the app is started or back in foreground.
-
onStop
Unit onStop(LifecycleOwner owner)
Cancel periodicTaskJob when the app is stopped or goes in background.
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
-
-
-