class MavericksMockPrinter : LifecycleObserver
This registers a Broadcast receiver on the MavericksView (only in debug mode) that listens for the intent action ACTION_COPY_MAVERICKS_STATE to copy mavericks state to files on device.
The resulting file names are printed to logcat so tooling can copy them from device.
fun onDestroyed(): Unit |
|
fun onStarted(): Unit |
|
fun onStopped(): Unit |
const val ACTION_COPY_MAVERICKS_STATE: String |
fun startReceiver(mvrxView: MavericksView): Unit
Register the given view to listen for broadcast receiver intents for mock state printing. This is safe to call multiple times for the same MavericksView, and is a no-op if MockableMavericks.enableMockPrinterBroadcastReceiver is disabled. |