SolidSignInClient

Manages sign-in authorization between a third-party app and the Android Solid Services app.

Obtain an instance via Solid.getSignInClient. All operations require the Android Solid Services app to be installed and running on the device.

Typical flow:

  1. Check authServiceConnectionState to confirm the IPC service is connected.

  2. Call getAccount — if it returns null, the app is not yet authorized.

  3. Launch AuthorizeWithSolid from your Activity to let the user grant access.

  4. Use disconnectFromSolid to revoke access when the user signs out.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Hot Flow of the IPC service connection state. Emits true once the bound service connects and false if it disconnects.

Link copied to clipboard
fun disconnectFromSolid(webId: String, callBack: (Boolean) -> Unit)

Revokes this app's access to webId's Solid pod. callBack receives true on success and false on failure.

Link copied to clipboard

Returns a SolidSignInAccount if this app is authorized for webId, or null if not yet granted access.

Link copied to clipboard
fun requestLogin(callBack: (String?, SolidException?) -> Unit)

No longer shows a picker. callBack always receives (null, SolidServicesDrawPermissionDeniedException).