mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-28 08:30:11 +00:00
Added `allowAutomaticFetchingForNewFeedbackForManager:` which allows the developer to influence if the SDK should fetch for new messages on app startup and when the app is coming into foreground. By default the SDK always checks in those cases if there are already messages existing.
64 lines
2.3 KiB
Objective-C
64 lines
2.3 KiB
Objective-C
/*
|
|
* Author: Stephan Diederich
|
|
*
|
|
* Copyright (c) 2013-2014 HockeyApp, Bit Stadium GmbH.
|
|
* All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person
|
|
* obtaining a copy of this software and associated documentation
|
|
* files (the "Software"), to deal in the Software without
|
|
* restriction, including without limitation the rights to use,
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following
|
|
* conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class BITFeedbackManager;
|
|
@protocol BITFeedbackComposeViewControllerDelegate;
|
|
|
|
/**
|
|
* Delegate protocol which is notified about changes in the feedbackManager
|
|
* @TODO
|
|
* * move shouldShowUpdateAlert from feedbackManager here
|
|
*/
|
|
@protocol BITFeedbackManagerDelegate <NSObject, BITFeedbackComposeViewControllerDelegate>
|
|
|
|
@optional
|
|
|
|
/**
|
|
* can be implemented to know when new feedback from the server arrived
|
|
*
|
|
* @param feedbackManager The feedbackManager which did detect the new messages
|
|
*/
|
|
- (void) feedbackManagerDidReceiveNewFeedback:(BITFeedbackManager*) feedbackManager;
|
|
|
|
|
|
/**
|
|
* Can be implemented to control wether the feedback manager should automatically
|
|
* fetch for new messages on app startup or when becoming active.
|
|
*
|
|
* By default the SDK fetches on app startup or when the app is becoming active again
|
|
* if there are already messages existing or pending on the device.
|
|
*
|
|
* You could disable it e.g. depending on available mobile network/WLAN connection
|
|
* or let it fetch less frequently.
|
|
*/
|
|
- (BOOL) allowAutomaticFetchingForNewFeedbackForManager:(BITFeedbackManager *)feedbackManager;
|
|
|
|
@end
|