Need a way to know when camera iris has openend for automated UI testing

Originator:aufflick
Number:rdar://11261290 Date Originated:17/4/12
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
17-Apr-2012 12:44 PM Mark Aufflick:
Summary:

In earlier iOS versions there was an undocumented notification PLCameraViewIrisAnimationDidEndNotification when the camera iris opened.

Ignoring whether this is or isn't useful in an application logic, it is very useful for automated UI testing to avoid an arbitrary timer delay which is bad coding and leads to false negatives.

There should be a way (I believe for shipping code as well as UI testing, but certainly for testing) to detect when the iris has openend.

Steps to Reproduce:

Attempt to determine in code when the presented camera controller iris animation has completed.

Expected Results:

There is a way

Actual Results:

There isn't a way.

Regression:

There used to at least be an undocumented way, the PLCameraViewIrisAnimationDidEndNotification notification, which was perfectly fine for UIAutomation testing.

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!