Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.
Item Finder API
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.
Plugin utility used for automatic tags ( http, email, phone numbers )
The CAKnItemFinder class provides the functionality of highlighting, selecting and retrieving items like phone number, URL, http address in text viewer editors.
iAutoFinder = CAknItemFinder::NewL();
//Must be called before editor creation in order to have effect
iAutoFinder->SetEditor((CEikRichTextEditor**)&iDialText); // iDial is any editor.
The following code is used to scroll down for the found items through the editor
TBool iReturn = iAutoFinder->NextItemOrScrollL( CAknItemFinder::ENextDown );
The following code is used to retrieve the selected item.
HBufC* iBuff = iAutoFinder->CurrentItem().iItemDescriptor;