Public class CameraComponent implements LifecycleObserver {
.
@ OnLifecycleEvent (Lifecycle. Event. ON_RESUME) Public void initializeCamera () { If (camera==null) { GetCamera (); } }
. }
Tutorial in the code, after receiving the ON_RESUME event, in this class will perform initializeCamera () to initialize the camera, but LifecycleObserver is not a interface, the interface is not without specific implementation? Why this interface can put the news spread to come over? If @ OnLifecycleEvent (Lifecycle. Event. ON_RESUME) this coming, why can coming, @ beginning Java annotations, isn't it? Used to generate javadoc, why can send messages? Beginners, a great god laughed