Add KDoc to the authentication, logout, preferences and share API interfaces

Cover the remaining interfaces of features/login, features/logout,
features/preferences and features/share, along with their members and parameters.

Points recorded here: AccountProviderAccessControl returns true on a build with no
enterprise restriction, ExtraDeveloperOptionsRenderer is bound to a no-op in the
standard build, DirectLogoutView draws nothing until a logout event is sent, and
CacheService exists because clearing a cache destroys the client and the app has
to react.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benoit Marty
2026-08-14 11:53:37 +02:00
parent fa123d941b
commit 1b4d6c07fa
7 changed files with 40 additions and 0 deletions
@@ -10,7 +10,17 @@ package io.element.android.features.logout.api.direct
import androidx.compose.runtime.Composable
/**
* Renders the confirmation dialogs of logging out directly, in particular the warning shown when the user would lose their room keys.
*
* It draws nothing until the host screen sends a logout event.
*/
fun interface DirectLogoutView {
/**
* Draws whichever dialog the current state calls for.
*
* @param state the state produced by the direct logout presenter.
*/
@Composable
fun Render(state: DirectLogoutState)
}