mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user