Package com.tomtom.ivi.platform.framework.api.common.util
Contains general purpose utilities to simplify common use cases, for instance: extension functions for Animation and Collection.
Types
Application class related utilities.
Utility class to check whether app operations (app ops) are allowed.
An extension of AnimationListener with default implementations, so that not every method has to be implemented.
Properties
Functions
Checks whether any element in the collection is false
. Returns false
if empty.
Checks whether any element in the collection is true
. Returns false
if empty.
Coroutine delay convenience syntax taking a java.time.Duration instead of kotlin.time.Duration.
Returns a Rect, bounding the view.
Returns index of the first element matching the given predicate, or null
if the array does not contain such element.
Returns index of the first element matching the given predicate, or null
if the collection does not contain such element.
Returns index of the first element matching the given predicate, or null
if the iterable does not contain such element.
Returns index of the last element matching the given predicate, or null
if the array does not contain such element.
Returns index of the last element matching the given predicate, or null
if the collection does not contain such element.
Returns index of the last element matching the given predicate, or null
if the iterable does not contain such element.
Whether the event is within the bounds of the view.
Returns true
if the current process is a main one. A current process is considered the main process if its name is the same as the package name (application ID).
Checks if a type is nullable.
Sets the animation listener on the animation, dispatching only the AnimationListener.onAnimationEnd callback.
Coroutine withTimeout convenience syntax taking a java.time.Duration instead of kotlin.time.Duration.