Code example for DialogFragment

Methods: onAttach