| This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. The article is believed to be still valid for the original topic scope. |
Contents |
The picviewer script, the picviewer service, and the widget skin are used to create picviewing widgets from RSS containing image links. This section explains how the picviewer script works and how you can create custom skins.
A generic picviewer script uses a server-side service to synchronize feed items every time a client goes online. An online server notifies the client when a new item becomes available, and the script downloads the new item automatically. The script saves synchronized and loaded content on the phone so it can be accessed offline.
The picviewer script works in a very similar way to the syndication script, and both utilize the same backend services.
The picviewer script supports various formats of image feeds. When configuring your picviewer service, use the following pictureserviceparam types depending on your feed format:
A picviewer widget consist of 4 views:
The following styles are used by the picviewer widget:
To create a picviewer widget, set up the following services in widget.xml:
<service type="picviewer" id="feed"> <reference from="feedurlparam" to="feedurl"/> <reference from="pictureserviceparam" to="pictureservice"/> </service>
You also need to set up the following parameters in widget.xml:
<parameters>
<parameter type="string"
name="widgetname"
description="Name of widget"
editable="false">
My Picture Widget
</parameter>
<parameter type="string"
name="feedurlparam"
description="This feed URL"
editable="true">
http://api.flickr.com/services/feeds/photos_public.gne?tags=sunsets&format=rss_200
</parameter>
<parameter type="string"
name="show.images"
description="Show images"
editable="true"/>
<parameter type="string"
name="pictureserviceparam"
description="picture service provider"
editable="false">
flickr
</parameter>
</parameters>
No related wiki articles found