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.

  1. Customer App create class (assume named SHPhonegapObserver) inherit from ISHPhonegapObserver and implement function shPGDisplayHtmlFileName, which get html page name and implement how to load the html page on web view.
  2. Customer App call [StreetHawk shPGHtmlReceiver:<instance_SHPhonegapObserver> to register the observer.
  3. 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