mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-08 05:30:47 +00:00
Add private methods (session tracking)
This commit is contained in:
parent
0520f716b5
commit
fda99a4777
@ -37,6 +37,46 @@
|
|||||||
*/
|
*/
|
||||||
@property (nonatomic, strong, readonly)dispatch_queue_t telemetryEventQueue;
|
@property (nonatomic, strong, readonly)dispatch_queue_t telemetryEventQueue;
|
||||||
|
|
||||||
|
///-----------------------------------------------------------------------------
|
||||||
|
/// @name Session Management
|
||||||
|
///-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Interval an app has to be in the background until the current session gets renewed.
|
||||||
|
*/
|
||||||
|
@property (nonatomic, assign)NSUInteger appBackgroundTimeBeforeSessionExpires;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers manager for several notifications, which influence the session state.
|
||||||
|
*/
|
||||||
|
- (void)registerObservers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unregisters manager for several notifications, which influence the session state.
|
||||||
|
*/
|
||||||
|
- (void)unregisterObservers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores the current date before app is sent to background.
|
||||||
|
*
|
||||||
|
* @see appBackgroundTimeBeforeSessionExpires
|
||||||
|
* @see startNewSessionIfNeeded
|
||||||
|
*/
|
||||||
|
- (void)updateDidEnterBackgroundTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines whether the current session needs to be renewed or not.
|
||||||
|
*
|
||||||
|
* @see appBackgroundTimeBeforeSessionExpires
|
||||||
|
* @see updateDidEnterBackgroundTime
|
||||||
|
*/
|
||||||
|
- (void)startNewSessionIfNeeded;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new session and sends it to the server.
|
||||||
|
*/
|
||||||
|
- (void)startNewSession;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif /* HOCKEYSDK_FEATURE_TELEMETRY */
|
#endif /* HOCKEYSDK_FEATURE_TELEMETRY */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user