registerContactsPermission
Registers a BaseContactsPermissionManagerBuilder and PermissionStateRepo for ContactsPermission to the PermissionsBuilder.register and PermissionsBuilder.registerPermissionStateRepoBuilder respectively Only one builder can be registered.
Return
the BaseContactsPermissionManagerBuilder registered
Parameters
method for creating a BaseContactsPermissionManagerBuilder from a PermissionContext
the Duration after which the system should poll for changes to the permission if automatic detection is impossible.
the BasePermissionManager.Settings to apply to any BasePermissionManager created using the registered builders.
Throws
if either the BaseContactsPermissionManagerBuilder or PermissionStateRepo have already been registered
Registers a BaseContactsPermissionManagerBuilder and PermissionStateRepo for ContactsPermission to the PermissionsBuilder.register and PermissionsBuilder.registerPermissionStateRepoBuilder respectively Only one builder can be registered.
Return
the BaseContactsPermissionManagerBuilder registered
Parameters
method for creating a BaseContactsPermissionManagerBuilder from a PermissionContext
method for creating a PermissionStateRepo for ContactsPermission given a BaseContactsPermissionManagerBuilder and CoroutineContext
Throws
if either the BaseContactsPermissionManagerBuilder or PermissionStateRepo have already been registered