Package org.robolectric.shadows
Class ShadowAppWidgetHost
- java.lang.Object
-
- org.robolectric.shadows.ShadowAppWidgetHost
-
@Implements(android.appwidget.AppWidgetHost.class) public class ShadowAppWidgetHost extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowAppWidgetHost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void__constructor__(android.content.Context context, int hostId)protected intallocateAppWidgetId()protected android.appwidget.AppWidgetHostViewcreateView(android.content.Context context, int appWidgetId, android.appwidget.AppWidgetProviderInfo appWidget)android.content.ContextgetContext()intgetHostId()voidsetAppWidgetIdToAllocate(int idToAllocate)
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__(android.content.Context context, int hostId)
-
getContext
public android.content.Context getContext()
-
getHostId
public int getHostId()
-
setAppWidgetIdToAllocate
public void setAppWidgetIdToAllocate(int idToAllocate)
-
allocateAppWidgetId
@Implementation protected int allocateAppWidgetId()
-
createView
@Implementation protected android.appwidget.AppWidgetHostView createView(android.content.Context context, int appWidgetId, android.appwidget.AppWidgetProviderInfo appWidget)
-
-