Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ClassType

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class ClassType
androidx.navigation.NavDestination.ClassType

This optional annotation allows tooling to offer auto-complete for the android:name attribute. This should match the class type passed to parseClassFromName(Context, String, Class) when parsing the android:name attribute.

Summary

Public constructors

<init>(value: KClass<*>)

This optional annotation allows tooling to offer auto-complete for the android:name attribute.

Properties

KClass<*>

Public constructors

<init>

ClassType(value: KClass<*>)

This optional annotation allows tooling to offer auto-complete for the android:name attribute. This should match the class type passed to parseClassFromName(Context, String, Class) when parsing the android:name attribute.

Properties

value

val value: KClass<*>