Class DynamicPermissionsActivity

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, DynamicPermissionsListener, DynamicProductFlavor

public class DynamicPermissionsActivity extends DynamicActivity implements DynamicPermissionsListener
Base activity to request the DynamicPermission. It will be useful to request a permission from anywhere, even from a service. Extend this activity in your app and add it in the manifest to provide additional functionality.

Then, register that activity to request the permissions via DynamicPermissions.setPermissionsActivity(Class). Rest of the things will be handled by the DynamicPermissionsFragment.

To request permissions, just call DynamicPermissions.requestPermissions(String[], boolean, Intent, int) method anywhere within the app.

  • Constructor Details

    • DynamicPermissionsActivity

      public DynamicPermissionsActivity()
  • Method Details