[TIMOB-8690] iOS: Add a shouldLoad event / callback to WebView
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-04-28T18:31:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.1.0, Sprint 2012-09 Core |
Components | iOS |
Labels | SupportTeam, api |
Reporter | Rafael Kellermann Streit |
Assignee | Marshall Culpepper |
Created | 2012-04-11T12:02:25.000+0000 |
Updated | 2017-03-16T20:40:59.000+0000 |
I'm seeing that the TiUIWebView.m file has this code line behind the shouldStartLoadWithRequest delegate: if ([self.proxy _hasListeners:@"beforeload"]) { NSDictionary *event = newUrl == nil ? nil : [NSDictionary dictionaryWithObject:[newUrl absoluteString] forKey:@"url"]; [self.proxy fireEvent:@"beforeload" withObject:event]; } It probably will be released with the 2.0 version. So, this TIMOB isn't necessary anymore.
Here is the Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1999
Closing ticket as the information that was requested was never provided.