Avatar

constructor(painter: Painter, contentDescription: String, onClick: () -> Unit?)

Creates an instance of OudsTopAppBarAction.Avatar.

Parameters

painter

Painter of the avatar.

contentDescription

The content description associated with this OudsTopAppBarAction.Avatar.

onClick

Callback invoked when the avatar is clicked.


constructor(imageVector: ImageVector, contentDescription: String, onClick: () -> Unit?)

Creates an instance of OudsTopAppBarAction.Avatar.

Parameters

imageVector

Image vector of the avatar.

contentDescription

The content description associated with this OudsTopAppBarAction.Avatar.

onClick

Callback invoked when the avatar is clicked.


constructor(bitmap: ImageBitmap, contentDescription: String, onClick: () -> Unit?)

Creates an instance of OudsTopAppBarAction.Avatar.

Parameters

bitmap

Image bitmap of the avatar.

contentDescription

The content description associated with this OudsTopAppBarAction.Avatar.

onClick

Callback invoked when the avatar is clicked.


constructor(monogram: Char, color: Color, backgroundColor: Color, contentDescription: String, onClick: () -> Unit?)

Creates an instance of OudsTopAppBarAction.Avatar.

Parameters

monogram

The single letter monogram for this avatar.

color

The color of the monogram.

backgroundColor

The background color of the monogram.

contentDescription

The content description associated with this OudsTopAppBarAction.Avatar.

onClick

Callback invoked when the avatar is clicked.