Fragment cleanup using OnDestroyView

DanDickersonDanDickerson ✭✭USMember ✭✭

I need to perform certain housekeeping tasks when I close a fragment.
If I override the the OnDestroyView method, do I need to do anything to deal with the normal functions of this method?
In other words, is this code sufficient:

        public override void OnDestroyView()
        {
           //My cleanup stuff here
        }

I haven't found any documentation on the proper way to "hijack" this method.

Thanks,
Dan

Sign In or Register to comment.