Build the functions of one of the core classes that will let you handle the PiP mode and communicate its state.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/13011660-implementing-picture-in-picture-mode-in-android/lessons/5