LogLifecycle

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class LogLifecycle(val name: String = "", val obverseEvent: Array<LogLifecycleEvent> = [ LogLifecycleEvent.ON_ATTACH, LogLifecycleEvent.ON_CREATE, LogLifecycleEvent.ON_CREATE_VIEW, LogLifecycleEvent.ON_ACTIVITY_CREATED, LogLifecycleEvent.ON_START, LogLifecycleEvent.ON_RESUME, LogLifecycleEvent.ON_PAUSE, LogLifecycleEvent.ON_STOP, LogLifecycleEvent.ON_DESTROY_VIEW, LogLifecycleEvent.ON_DESTROY, LogLifecycleEvent.ON_DETACH, LogLifecycleEvent.ON_PRE_ATTACHED, LogLifecycleEvent.ON_PRE_CREATED, LogLifecycleEvent.ON_SAVE_INSTANCE_STATE ])

Annotation to put on an Activity or a Fragment that denotes its lifecycle methods should be logged out. If the name is provided, this is the name that will be used for this class, use either the name of the class or something descriptive to see in the logs. If nothing is provided then LogLifecycle will attempt to get it by Class.getSimpleName. By default all lifecycle methods that were provided in obverseEvent will be logged out, if obverseEvent is provided then only the methods provided to it will be logged out.

Since

1.3.10

Properties

Link copied to clipboard
Link copied to clipboard