Profile

fun Profile(profile: Profile, modifier: Modifier = Modifier)

Profile is a composable that displays a user's profile card. Given a Profile, iit displays a profile UI component using the other atomic components provided within the SDK.

Parameters

profile

The user's profile information

modifier

Composable modifier


@JvmName(name = "ProfileWithComponentState")
fun Profile(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> Avatar( state = profileState, size = 72.dp, modifier = Modifier.clip(CircleShape), ) }, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState -> ViewProfileButton(profileState, Modifier.padding(0.dp)) })

Profile is a composable that displays a user's profile card. Given a ComponentState for a Profile, it displays a Profile in the appropriate state.

Parameters

state

The user's profile state

modifier

Composable modifier

avatar

Composable to display the user avatar

viewProfile

Composable to display the view profile button


fun Profile(profile: Profile, modifier: Modifier = Modifier)

Deprecated

This class is deprecated and will be removed in a future release.

Replace with

com.gravatar.ui.components.Profile

Profile is a composable that displays a user's profile card. Given a LegacyProfile, it displays a profile UI component using the atomic components provided within the SDK.

Parameters

profile

The user's profile information

modifier

Composable modifier


fun Profile(state: ComponentState<Profile>, modifier: Modifier = Modifier)

Deprecated

This class is deprecated and will be removed in a future release.

Replace with

com.gravatar.ui.components.Profile

Profile is a composable that displays a user's profile card. Given a ComponentState for a LegacyProfile, it displays a Profile in the appropriate state.

Parameters

state

The user's profile state

modifier

Composable modifier