FriendsUtils
Common Utilities for Friends More...
Import Statement: | import Friends 0.1 |
Detailed Description
FriendsUtils provides some common functions needed for Friends.
The API providews the following methods:
- createTimeString which returns a timestring from a timestamp ("a few seconds ago", "2 hours ago", etc)
- getAvatarPath returns a valid path to the cached avatar
Example of use:
Item { FriendsUtils { id: friendsUtils } Text { text: friendsUtils.createTimeString("2013-03-07T19:30:02Z") } Image { source: friendsUtils.getAvatarPath ("https://graph.facebook.com/kenvandine/picture") } }