added events for pageprocessing & rendering
This commit is contained in:
parent
63504ae644
commit
1c7d9786f7
@ -196,7 +196,11 @@ import MVMCore
|
|||||||
return "Error parsing template. \((parsingError as NSError).localizedFailureReason ?? parsingError.localizedDescription)"
|
return "Error parsing template. \((parsingError as NSError).localizedFailureReason ?? parsingError.localizedDescription)"
|
||||||
}
|
}
|
||||||
|
|
||||||
open func parsePageJSON() throws { }
|
open func parsePageJSON() throws {
|
||||||
|
if let pageType, let identifier = loadObject?.identifier {
|
||||||
|
MVMCoreLoggingHandler.shared()?.logPageProcessingComplete(for: pageType, requestUUID: identifier, webUrl: loadObject?.pageJSON?.optionalStringForKey("browserUrl"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
open class func verifyRequiredModulesLoaded(for loadObject: MVMCoreLoadObject?, error: AutoreleasingUnsafeMutablePointer<MVMCoreErrorObject?>) -> Bool {
|
open class func verifyRequiredModulesLoaded(for loadObject: MVMCoreLoadObject?, error: AutoreleasingUnsafeMutablePointer<MVMCoreErrorObject?>) -> Bool {
|
||||||
guard let pageType = loadObject?.pageType,
|
guard let pageType = loadObject?.pageType,
|
||||||
@ -372,6 +376,10 @@ import MVMCore
|
|||||||
if manager == nil {
|
if manager == nil {
|
||||||
pageShown()
|
pageShown()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let pageType, let identifier = loadObject?.identifier {
|
||||||
|
MVMCoreLoggingHandler.shared()?.logPageRenderComplete(for: pageType, requestUUID: identifier, templateName: loadObject?.pageJSON?.optionalStringForKey("template"), controllerName: "\(type(of: self))")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func viewWillDisappear(_ animated: Bool) {
|
open override func viewWillDisappear(_ animated: Bool) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user