Companion

object Companion

Functions

Link copied to clipboard
fun generatePin(namespace: Namespace, objectId: String): String

Generates a unique ID that represents a DataClass unequivocally.

Link copied to clipboard
suspend fun getIntent(context: Context, activity: Class<*>, query: String): Intent?

Gets the Intent used to launch the Activity of a DataClass using query as the search requirement.

inline suspend fun <A : DataClass<*, *, *>, B : DataRoot<A>> getIntent(context: Context, activity: Class<*>, namespace: Namespace, objectId: String): Intent?

Gets the Intent used to launch the Activity of a DataClass with namespace and if objectId.

Link copied to clipboard
fun imageName(namespace: Namespace, objectId: String, suffix: String?): String

Returns the correct image name for the desired objectId and namespace.

Link copied to clipboard
fun kmzFile(context: Context, permanent: Boolean, namespace: Namespace, objectId: String): File