ISHDeepLinking Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SHBaseViewController.h |
Overview
Protocol for deal with deeplinking. StreetHawkBaseViewController
and StreetHawkBaseTableViewController
conform this protocol, customer App’s view controller is recommended to inherit from StreetHawkBaseViewController
or StreetHawkBaseTableViewController
, so can implement this protocol. Or customer’s App’s view controller can directly conform this protocol for deeplinking.
– receiveDeepLinkingData:
Implement this function for receive deeplinking parameters. Customer App needs to hold the pass in dictParam
in some internal data structure, cannot rely on this function to show to UI. Because this function is called before UI loaded, the controls are not created yet. StreetHawkBaseViewController
or StreetHawkBaseTableViewController
automatically calls displayDeepLinkingToUI
on viewDidLoad
to display data to UI.
- (void)receiveDeepLinkingData:(NSDictionary *)dictParam
Parameters
dictParam |
Pass in parameters. |
---|
Declared In
SHBaseViewController.h
– displayDeepLinkingToUI
Implement this function if need to show deeplinking data to UI. The data was received in receiveDeepLinkingData:
before UI loaded, and it should be stored in customer’s view controller internal data. Call this function whenever it’s ready to show data to UI controller. viewDidLoad
is already automatically called by StreetHawkBaseViewController
or StreetHawkBaseTableViewController
.
- (void)displayDeepLinkingToUI
Declared In
SHBaseViewController.h