ISHPhonegapObserver Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | ISHPhonegapObserver.h |
Overview
Streethawk calls [ISHPhoneGapObserver shPGDisplayHtmlFileName] function when a friendly names is sent from Streethawk server. Customer App developer gets the name of HTML file and need to implemented in Phonegap App by themselves. This is observer model.
- Customer App create class (assume named
SHPhonegapObserver
) inherit fromISHPhonegapObserver
and implement functionshPGDisplayHtmlFileName
, which get html page name and implement how to load the html page on web view. - Customer App call
[StreetHawk shPGHtmlReceiver:<instance_SHPhonegapObserver>
to register the observer. - When StreetHawk sends 8004, map friendly name to html page and call registered instance of
ISHPhoneGapObserver
.
– shPGDisplayHtmlFileName:
required method
Phonegap Only! Function returns name of the html file which needs to be displayed in application.
- (void)shPGDisplayHtmlFileName:(NSString *)html_fileName
Parameters
html_fileName |
The html file name. |
---|
Declared In
ISHPhonegapObserver.h