getIntent

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.

Author

Arnau Mora

Since

20210825

Return

An Intent if the DataClass was found, or null.

Parameters

context

The Context that is requesting the Intent.

query

What to search for. May be DataClass.displayName or DataClassMetadata.webURL.


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.

Author

Arnau Mora

Since

20220128

Return

An Intent if the DataClass was found, or null.

Parameters

context

The Context that is requesting the Intent.

namespace
objectId

The DataClass.objectId to search for.