VIDEOkit
Recipe 14-7 introduces VIDEOkit, a basic external screen client. It demonstrates all the features needed to get up and going with wired and wireless external screens. You establish screen monitoring by calling startupWithDelegate:
. Pass it the primary view controller whose job it will be to create external content.
The internal init
method starts listening for screen attach and detach events and builds and tears down windows as needed. An informal delegate method (updateExternalView
:) is called each time the display link fires. It passes a view that lives on the external window that the delegate can draw onto as needed.
In the sample code that accompanies this recipe, the view controller delegate stores a local color value and uses it ...
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.