TransferStatisticsContext

Objective-C


@interface TransferStatisticsContext : NSObject

Swift

class TransferStatisticsContext : NSObject

This class handles the transfer statistics.

  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Get the overall uploaded data size in bytes.

    Declaration

    Objective-C

    - (NSInteger)getUpload;

    Swift

    func getUpload() -> Int
  • Get the overall downloaded data size in bytes.

    Declaration

    Objective-C

    - (NSInteger)getDownload;

    Swift

    func getDownload() -> Int
  • Get the overall requests count.

    Declaration

    Objective-C

    - (NSInteger)getRequests;

    Swift

    func getRequests() -> Int
  • Get the uploaded data size in bytes / network type ( see NetworkType )

    Declaration

    Objective-C

    - (NSInteger)getUpload:(NetworkType)networkType;

    Swift

    func getUpload(_ networkType: NetworkType) -> Int
  • Get the overall downloaded data size in bytes / network type ( see NetworkType ).

    Declaration

    Objective-C

    - (NSInteger)getDownload:(NetworkType)networkType;

    Swift

    func getDownload(_ networkType: NetworkType) -> Int
  • Get the overall requests count / network type ( see NetworkType ).

    Declaration

    Objective-C

    - (NSInteger)getRequests:(NetworkType)networkType;

    Swift

    func getRequests(_ networkType: NetworkType) -> Int
  • Reset transfer statistics.

    Declaration

    Objective-C

    - (void)resetStatistics;

    Swift

    func resetStatistics()