mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
+ Added Feedback collection methods.
This commit is contained in:
@@ -59,6 +59,25 @@ typedef NS_ENUM(NSInteger, BITFeedbackUserDataElement) {
|
||||
BITFeedbackUserDataElementRequired = 2
|
||||
};
|
||||
|
||||
/**
|
||||
* Available modes for collecting automated feedback.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) {
|
||||
/**
|
||||
* No automatic feedback gathering.
|
||||
*/
|
||||
BITFeedbackObservationNone = 0,
|
||||
/**
|
||||
* Feedback compose form will open once a screenshot is taken.
|
||||
*/
|
||||
BITFeedbackObservationModeOnScreenshot = 1,
|
||||
/**
|
||||
* Feedback compose will open with a generated screenshot if the screen is tapped
|
||||
* three fingers for three seconds.
|
||||
*/
|
||||
BITFeedbackObservationModeThreeFingersThreeSeconds = 2
|
||||
};
|
||||
|
||||
|
||||
@class BITFeedbackMessage;
|
||||
@protocol BITFeedbackManagerDelegate;
|
||||
@@ -241,6 +260,19 @@ typedef NS_ENUM(NSInteger, BITFeedbackUserDataElement) {
|
||||
*/
|
||||
- (void)showFeedbackComposeView;
|
||||
|
||||
/**
|
||||
Present the modal feedback compose message user interface with the items given.
|
||||
All NSString-Content in the array will be concatenated and result in the message,
|
||||
while all UIImage and NSData-instances will be turned into attachments.
|
||||
*/
|
||||
- (void)showFeedbackComposeViewWithPreparedItems:(NSArray *)items;
|
||||
|
||||
/**
|
||||
Present the modal feedback compose message user interface with a screenshot that is taken
|
||||
at the time of calling this method.
|
||||
*/
|
||||
- (void)showFeedbackComposeViewWithGeneratedScreenshot;
|
||||
|
||||
|
||||
/**
|
||||
Create an feedback compose view
|
||||
@@ -262,5 +294,7 @@ typedef NS_ENUM(NSInteger, BITFeedbackUserDataElement) {
|
||||
*/
|
||||
- (BITFeedbackComposeViewController *)feedbackComposeViewController;
|
||||
|
||||
- (void)setFeedbackObservationMode:(BITFeedbackObservationMode)mode;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user