Add option to include satusbar in screenshots

All mehotds in BITFeedbackManager that are screenshot releated are changed to include an option that defines wether the screenshot should include the statusbar (if present) or not:

- `- (UIImage *)screenshot` has been changed to `- (UIImage *)screenshotWithStatusBar:(BOOL)includeStatusBar)`
- `- (void)showFeedbackComposeViewWithGeneratedScreenshot` has been changed to `- (void)showFeedbackComposeViewWithGeneratedScreenshotWithStatusBar:(BOOL)includeStatusBar`
This commit is contained in:
Andreas Linde
2014-06-14 17:22:03 +02:00
parent 4226ac0f20
commit 423915cb0c
4 changed files with 17 additions and 10 deletions

View File

@@ -270,10 +270,12 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) {
/**
Return a screenshot UIImage intance from the current visiable screen
@param includeStatusBar BOOL if the screenshot should include the satusbar (if present) or not
@return UIImage instance containing a screenshot of the current screen
*/
- (UIImage *)screenshot;
- (UIImage *)screenshotWithStatusBar:(BOOL)includeStatusBar;
/**
@@ -315,8 +317,10 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) {
[[BITHockeyManager sharedHockeyManager].feedbackManager showFeedbackComposeViewWithGeneratedScreenshot];
@see feedbackObservationMode
@param includeStatusBar BOOL if the screenshot should include the satusbar (if present) or not
*/
- (void)showFeedbackComposeViewWithGeneratedScreenshot;
- (void)showFeedbackComposeViewWithGeneratedScreenshotWithStatusBar:(BOOL)includeStatusBar;
/**