Class DynamicWidgetActivity

All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2, SharedPreferences.OnSharedPreferenceChangeListener, KeyEvent.Callback, LayoutInflater.Factory, LayoutInflater.Factory2, View.OnCreateContextMenuListener, Window.Callback, ContextAware, FullyDrawnReporterOwner, OnBackPressedDispatcherOwner, ActivityResultCaller, ActivityResultRegistryOwner, ActionBarDrawerToggle.DelegateProvider, AppCompatCallback, ActivityCompat.OnRequestPermissionsResultCallback, ActivityCompat.RequestPermissionsRequestCodeValidator, OnMultiWindowModeChangedProvider, OnNewIntentProvider, OnPictureInPictureModeChangedProvider, TaskStackBuilder.SupportParentable, OnConfigurationChangedProvider, OnTrimMemoryProvider, KeyEventDispatcher.Component, MenuHost, HasDefaultViewModelProviderFactory, LifecycleOwner, ViewModelStoreOwner, androidx.savedstate.SavedStateRegistryOwner, DynamicLocale, DynamicListener, DynamicSearchListener, DynamicSnackbar, DynamicTransitionListener, DynamicProductFlavor

public abstract class DynamicWidgetActivity extends DynamicActivity
A DynamicActivity to configure widgets having basic configuration methods.

Extend this activity and add your own settings fragments according to the requirements.

  • Field Details

    • mAppWidgetId

      protected int mAppWidgetId
      App widget id for this configuration activity.
    • mUpdateWidget

      protected boolean mUpdateWidget
      true if updating the widget.
  • Constructor Details

    • DynamicWidgetActivity

      public DynamicWidgetActivity()
  • Method Details

    • onCreate

      protected void onCreate(@Nullable Bundle savedInstanceState)
      Overrides:
      onCreate in class DynamicActivity
    • addWidget

      public void addWidget(boolean finishActivity)
      Add widget after saving the settings.
      Parameters:
      finishActivity - true to finish the activity.
    • addWidget

      public void addWidget()
      Add widget after saving the settings.
      See Also: