Class ShadowAppWidgetHost

java.lang.Object
org.robolectric.shadows.ShadowAppWidgetHost

@Implements(android.appwidget.AppWidgetHost.class) public class ShadowAppWidgetHost extends Object
  • Constructor Details

    • ShadowAppWidgetHost

      public ShadowAppWidgetHost()
  • Method Details

    • __constructor__

      @Implementation protected void __constructor__(Context context, int hostId)
    • getContext

      public Context getContext()
    • getHostId

      public int getHostId()
    • setAppWidgetIdToAllocate

      public void setAppWidgetIdToAllocate(int idToAllocate)
    • isListening

      public boolean isListening()
      Returns true if this host is listening for updates.
    • allocateAppWidgetId

      @Implementation protected int allocateAppWidgetId()
    • createView

      @Implementation protected AppWidgetHostView createView(Context context, int appWidgetId, AppWidgetProviderInfo appWidget)
    • startListening

      @Implementation protected void startListening()
    • stopListening

      @Implementation protected void stopListening()