Skip to content

Determines whether AirPlay is available and provides a notification when availability changes.

Notifications You must be signed in to change notification settings

MobileVet/AirPlayDetector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

(ARC) AirPlayDetector

This a ARC compliant fork of https://github.com/StevePotter/AirPlayDetector

Does the job of detecting whether this device can connect to an Apple TV or whatever using AirPlay. It uses a hack with MPVolumeButton to overcome the fact that the framework has no properties or events for this information, which seems pretty silly to me.

This is for iOS only. OSX version would be welcomed!

To use it, simply put the following code in your app, typically in appdelegate during applicationDidFinishLaunchingWithOptions: [[AirPlayDetector defaultDetector] startMonitoring:window];

A notification will be posted when availability changes: AirPlayAvailabilityChanged

Or you can query availability by: [AirPlayDetector defaultDetector].isAirPlayAvailable

About

Determines whether AirPlay is available and provides a notification when availability changes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%