Icon
constructor(painter: Painter, contentDescription: String, badge: OudsTopAppBarActionBadge? = null, onClick: () -> Unit)
Creates an instance of OudsTopAppBarAction.Icon.
Parameters
painter
Painter of the icon.
contentDescription
The content description associated with this OudsTopAppBarAction.Icon.
badge
Optional badge displayed on the icon.
onClick
Callback invoked when the icon is clicked.
constructor(imageVector: ImageVector, contentDescription: String, badge: OudsTopAppBarActionBadge? = null, onClick: () -> Unit)
Creates an instance of OudsTopAppBarAction.Icon.
Parameters
imageVector
Image vector of the icon.
contentDescription
The content description associated with this OudsTopAppBarAction.Icon.
badge
Optional badge displayed on the icon.
onClick
Callback invoked when the icon is clicked.
constructor(bitmap: ImageBitmap, contentDescription: String, badge: OudsTopAppBarActionBadge? = null, onClick: () -> Unit)
Creates an instance of OudsTopAppBarAction.Icon.
Parameters
bitmap
Image bitmap of the icon.
contentDescription
The content description associated with this OudsTopAppBarAction.Icon.
badge
Optional badge displayed on the icon.
onClick
Callback invoked when the icon is clicked.