How can i detect turn on and off the television on tvOS?

Hi, I want to detect turn on and off the television on tvOS.

because I want to AVPlayer playback controls when that time.


Thanks for any answer.