BMPDownloadFinishedEvent
@interface BMPDownloadFinishedEvent : BMPPlayerEvent
See BMPPlayerListener.h for more information on this event.
-
Specifies the type of the request. Possible values are defined in BMPHttpRequestTypes.h.
Declaration
Objective-C
@property (readonly, copy, nonatomic) NSString *_Nonnull downloadType;
Swift
var downloadType: String { get }
-
The URL of the request.
Declaration
Objective-C
@property (readonly, copy, nonatomic) NSURL *_Nonnull url;
Swift
@NSCopying var url: NSURL { get }
-
The URL of the last redirect location in case a redirect happened
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSURL *lastRedirectLocation;
Swift
@NSCopying var lastRedirectLocation: NSURL? { get }
-
The time needed to finish the request.
Declaration
Objective-C
@property (readonly, nonatomic) NSTimeInterval downloadTime;
Swift
var downloadTime: TimeInterval { get }
-
The HTTP status code of the request. Status code 0 means that a general network error happened, e.g. no network connectivity
Declaration
Objective-C
@property (readonly, nonatomic) NSUInteger httpStatus;
Swift
var httpStatus: UInt { get }
-
The size of the downloaded data, in bytes
Declaration
Objective-C
@property (readonly, nonatomic) NSUInteger size;
Swift
var size: UInt { get }
-
Indicates whether the request was successful (YES) or failed (NO).
Declaration
Objective-C
@property (readonly, getter=wasSuccessful, nonatomic) BOOL successful;
Swift
var wasSuccessful: Bool { get }
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithType:(NSString *)type url:(NSURL *)url downloadTime:(NSTimeInterval)downloadTime httpStatus:(NSUInteger)httpStatus size:(NSUInteger)size success:(BOOL)successful lastRedirectLocation:(nullable NSURL *)lastRedirectLocation NS_DESIGNATED_INITIALIZER;
Swift
init(type: String, url: NSURL, downloadTime: TimeInterval, httpStatus: UInt, size: UInt, success successful: Bool, lastRedirectLocation: NSURL?)