Package-level declarations

Types

Link copied to clipboard
abstract class DataClass<A : DataClassImpl, B : DataClassImpl, D : DataRoot<*>>(val displayName: String, val timestampMillis: Long, val imagePath: String, val kmzPath: String?, val location: GeoPoint?, val metadata: DataClassMetadata, val displayOptions: DataClassDisplayOptions) : DataClassImpl

The main data storage class.

Link copied to clipboard
abstract class DataClassCompanion<D : DataClass<*, *, *>>
Link copied to clipboard
data class DataClassDisplayOptions(@DrawableRes val placeholderDrawable: Int, @DrawableRes val errorPlaceholderDrawable: Int, val columns: Int, val vertical: Boolean, val showLocation: Boolean)

Stores the configuration in which the DataClass should be displayed.

Link copied to clipboard
open class DataClassImpl(val objectId: String, val namespace: Namespace, val timestampMillis: Long, val displayName: String) : Parcelable
Link copied to clipboard
data class DataClassMetadata(val objectId: String, val namespace: Namespace, val webURL: String?, val parentId: String?, val childrenCount: Long)

Functions

Link copied to clipboard

Fetches the namespace and object id from a pin.

Link copied to clipboard
operator fun <D : DataClass<*, *, *>> Iterable<D>.get(objectId: String): D?

Gets an element from the Iterable.

Link copied to clipboard
inline suspend fun <A : DataClassImpl, R : Comparable<R>> String.getChildren(context: Context, namespace: Namespace, crossinline sortBy: (A) -> R?): List<A>?

Fetches all the children of the DataClass with the specified object id.

Link copied to clipboard
fun <D : DataClass<*, *, *>> Iterable<D>.has(objectId: String): Boolean

Checks if an Iterable contains a DataClass with the set objectId.

Properties

Link copied to clipboard

Contains a list of the namespaces of the downloadable DataClasses.