FileDocCategorySizeDatePackage
LauncherAppWidgetInfo.javaAPI DocAndroid 1.5 API1609Wed May 06 22:42:46 BST 2009com.android.launcher

LauncherAppWidgetInfo

public class LauncherAppWidgetInfo extends ItemInfo
Represents a widget, which just contains an identifier.

Fields Summary
int
appWidgetId
Identifier for this widget when talking with {@link AppWidgetManager} for updates.
android.appwidget.AppWidgetHostView
hostView
View that holds this widget after it's been created. This view isn't created until Launcher knows it's needed.
Constructors Summary
LauncherAppWidgetInfo(int appWidgetId)


      
        itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET;
        this.appWidgetId = appWidgetId;
    
Methods Summary
voidonAddToDatabase(android.content.ContentValues values)

        super.onAddToDatabase(values);
        values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId);
    
public java.lang.StringtoString()

        return Integer.toString(appWidgetId);