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