describe your widget
Every widget page must contain a widgetPackage.xml file. This file contains necessary information about the widget, including its title, description, version number, author info, and width and height.
Tip: If you don't want to write this file by hand, use the widgetPackage Generator instead!
create a widgetPackage.xml file
Here's an example widgetPackage.xml file:
<?xml version="1.0" encoding="utf-8" ?> <widgetPackage xmlns="http://xmlns.sony.net/mylo/widget" version="1.0"> <info> <packageName>A Cool Widget</packageName> <author>Your Name Here</author> <abstract>A cool widget I made!</abstract> <version>1.000</version> <locale>US</locale> <engine>1.000</engine> <updateURL>http://yoursite.com/mylo/widgetPackage.xml</updateURL> <siteURL>http://yoursite.com/</siteURL> <minWidth>15</minWidth> <maxWidth>50</maxWidth> <minHeight>15</minHeight> <maxHeight>50</maxHeight> <defWidth>32</defWidth> <defHeight>32</defHeight> <createDate>2023-05-09</createDate> </info> </widgetPackage>
Copy and paste the above text into a new widgetPackage.xml file, then modify the contents of the metadata tags to describe your widget.
metadata tag descriptions
- packageName - The name of your widget that's shown in the widget installer.
- author - The name of the author that's shown in the widget installer.
- abstract - A short description of your widget.
- version - The current revision/version number of your widget.
- locale - A 2-letter code denoting the language of your widget, such as US or JP.
- engine - The minimum OS version that the mylo must be running in order to install your widget. Specify 1.000 for full compatibility.
- updateURL - The mylo will try to download the most recent widgetPackage.xml file for this widget from this URL when checking for updates. This may be left blank if you don't want to provide automatic updates.
- siteURL - When selecting "go to author's page" in the widget installer, this website URL will open.
- minWidth & maxWidth - The minimum and maximum width that the widget can be resized to. Omit these tags to prevent horizontal resizing.
- minHeight & maxHeight - The minimum and maximun height that the widget can be resized to. Omit these tags to prevent vertical resizing.
- defWidth & defHeight - The default width and height of your widget.
- createDate - The date that this revision of the widget was made, in YYYY-MM-DD format.

The widget installer showing the metadata of a widget.