import android.support.annotation.IntDef //... // Define the list of accepted constants and declare the NavigationMode annotation @Retention(AnnotationRetention.SOURCE) @IntDef(NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS) annotationclassNavigationMode
// Decorate the target methods with the annotation // Attach the annotation @get:NavigationMode @setparam:NavigationMode abstractvar navigationMode: Int