lib / tv.smartclip.smartclientandroid.lib.utils

Package tv.smartclip.smartclientandroid.lib.utils

Types

AbsIntervalExecutor

Can be used as a base class for any IIntervalExecutor implementing classes.

abstract class AbsIntervalExecutor : IIntervalExecutor

BrowserHelper

Helper class to redirect the user to a given url in the default webbrowser app.

class BrowserHelper

DebugSettings

Contains debug settings which can be changed via the demo settings page.

class DebugSettings : IDebugSettings

IDebugSettings

interface IDebugSettings

IIntervalExecutor

Implementing classes have a callback that should be executed periodically in a given interval when a flag is active.

interface IIntervalExecutor : Releasable

IntervalExecutor

Same as AbsIntervalExecutor but with a callback property already defined. Can be used as a base class or a delegate for any IIntervalExecutor implementing classes.

open class IntervalExecutor : AbsIntervalExecutor

LogCache

Is used to cache all log messages and provide them to presenters.

object LogCache

LogInitializer

Initializes dev.zieger.utils.log.Log class.

object LogInitializer : (Context) -> Unit

TrackerRecorder

class TrackerRecorder

Extensions for External Classes

android.content.Context

android.view.View

Properties

blockApplyOverrideConfiguration

Override Activity.applyOverrideConfiguration and block the super call when this returns true.

val blockApplyOverrideConfiguration: Boolean

Functions

asUnit

Changes the return value of a statement to Unit.

fun <T> T.asUnit(): Unit

ifN

Replacement for nullValue ?: { ... }.invoke. Use like nullValue ifN { ... }

infix fun <T> T?.ifN(block: () -> Unit): Unit

notNull

fun <T0 : Any, T1 : Any, R : Any> notNull(v0: T0?, v1: T1?, block: (T0, T1) -> R): R?

onClick

infix fun <T : View> T?.onClick(block: (T) -> Unit): Unit?

oneOf

fun <T : Any> T.oneOf(vararg others: T): Boolean

whenNotNull

fun <A, B, C, Z> whenNotNull(a: A?, b: B?, c: C?, block: (A, B, C) -> Z): Z?