methods/permissions_methods/update_permission_config library
Classes
- PermissionCapabilities
- Configuration for what each permission level can do. Each capability can be: "allow" | "approval" | "disallow"
- PermissionConfig
- Permission configuration for all levels. Level "2" (host) always has full permissions - not configurable.
- UpdatePermissionConfigOptions
Functions
-
getDefaultPermissionConfig(
) → PermissionConfig - Returns the default permission configuration.
-
getPermissionConfigFromEventSettings(
{String audioSetting = 'approval', String videoSetting = 'approval', String chatSetting = 'allow'}) → PermissionConfig - Creates a PermissionConfig from event settings. This is useful when permissionConfig is not yet set, extracting initial values from the room's event settings. Both level0 and level1 will have the same initial permissions.
-
updatePermissionConfig(
UpdatePermissionConfigOptions options) → Future< void> - Updates the permission configuration for the room. Only hosts (islevel === "2") can update the configuration.
Typedefs
-
UpdatePermissionConfigType
= Future<
void> Function(UpdatePermissionConfigOptions options)