apidocs / com.nimmsta.core.android.platform / HandlerInterface

HandlerInterface

interface HandlerInterface

Interface for generic Handler which is executing a runnable.

Author
NIMMSTA Team

Copyright
NIMMSTA GmbH & IBPG 2020

License
NIMMSTA GmbH

Functions

postDelayedBackground

abstract fun postDelayedBackground(delay: Long, runnable: Runnable?): Unit
open fun postDelayedBackground(delay: Long, runnable: () -> Unit): Unit

postToMainDelayed

abstract fun postToMainDelayed(delay: Long, runnable: Runnable?): Unit
open fun postToMainDelayed(delay: Long, runnable: () -> Unit): Unit

postToMainThread

abstract fun postToMainThread(runnable: Runnable?): Unit
open fun postToMainThread(runnable: () -> Unit): Unit

Inheritors

AndroidPlatform

Android Platform implementation. This contains functions for logging, Threading and BarcodeRule Executor. Additionally it contains HighPriorityHandler that allows to check if Android device has an automatically disabled high priority mode as of a connection loss.

class AndroidPlatform : LogInterface, HandlerInterface, AnalyticsInterface, QRCodeRendererInterface, CustomConfigurationInterface