Package-level declarations

Types

Link copied to clipboard
object Exceptions
Link copied to clipboard
object GraphUtil
Link copied to clipboard
This filter will constrain edits so that the text length is not greater than the specified number of bytes using UTF-8 encoding.

Functions

Link copied to clipboard
fun exceptionReporter(inner: () -> Unit)

This wraps (and discards) exceptions, but first it reports them to our bug tracking system and prints a message to the log.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ignoreException(silent: Boolean = false, inner: () -> Unit)

This wraps (and discards) exceptions, but it does output a log message

Link copied to clipboard
fun MeshProtos.HardwareModel.isKnown(): Boolean

Checks if the hardware model is a known/supported value.

Link copied to clipboard
Link copied to clipboard
fun Context.registerReceiverCompat(receiver: BroadcastReceiver, filter: IntentFilter, flag: Int = ContextCompat.RECEIVER_EXPORTED)
Link copied to clipboard
fun MeshProtos.HardwareModel.safeNumber(fallbackValue: Int = -1): Int

Safely extracts the hardware model number from a HardwareModel enum.

Link copied to clipboard
inline fun Modifier.thenIf(precondition: Boolean, action: Modifier.() -> Modifier): Modifier

Conditionally applies the action to the receiver Modifier, if precondition is true. Returns the receiver as-is otherwise.

Link copied to clipboard
fun <T> toRemoteExceptions(inner: () -> T): T