Code example for Fragment

Methods: isDetached