expose method to report the final load operation source

This commit is contained in:
Kyle Matthew Hedden 2022-12-27 16:47:41 -05:00
parent 8e586e5f01
commit 920b975294
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@
@property (nullable, strong, nonatomic) MVMCoreLoadObject *loadObject;
@property (nullable, strong, nonatomic) NSDictionary *dataForPage;
@property (nullable, strong, nonatomic) DelegateObject *delegateObject;
@property (nullable, nonatomic, readonly) NSString *finalLoadSource;
@property (nonatomic) BOOL backgroundLoad;
@property (nonatomic, getter=areDependenciesAdded) BOOL dependenciesAdded;

View File

@ -77,6 +77,10 @@
[super start];
}
- (NSString *)finalLoadSource {
return _sessionTask.currentRequest.URL.absoluteString;
}
- (void)markAsFinished {
// stop any loading animation we may have started