android-components / mozilla.components.feature.sitepermissions / SitePermissionsFeature / <init>

<init>

SitePermissionsFeature(context: <ERROR CLASS>, sessionManager: SessionManager, sessionId: String? = null, storage: SitePermissionsStorage = SitePermissionsStorage(context), sitePermissionsRules: SitePermissionsRules? = null, fragmentManager: FragmentManager, promptsStyling: PromptsStyling? = null, dialogConfig: DialogConfig? = null, onNeedToRequestPermissions: OnNeedToRequestPermissions)

This feature will subscribe to the currently selected Session and display a suitable dialogs based on Session.Observer.onAppPermissionRequested or Session.Observer.onContentPermissionRequested events. Once the dialog is closed the PermissionRequest will be consumed.