Class UserAccount
One switchable account in a UserSwitcher.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class UserAccount
Fields
color
The account's identity colour, backing the initials. Typically a stable hash of the person, so they keep one colour everywhere.
Declaration
public Optional<Color> color
Field Value
| Type | Description |
|---|---|
| Optional<Color> |
disabled
When true the row cannot be selected: it is dimmed and shows a warning marker. Use it for accounts the user can see but not switch to, such as an org without the required licence.
Declaration
public bool disabled
Field Value
| Type | Description |
|---|---|
| bool |
The account's email address, if there is one.
Declaration
public string email
Field Value
| Type | Description |
|---|---|
| string |
id
A stable identifier. This is what accountSelected reports.
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| string |
name
The display name, shown on the row and used for the initials.
Declaration
public string name
Field Value
| Type | Description |
|---|---|
| string |
portrait
The profile image. Falls back to the initials when unset.
Declaration
public Background portrait
Field Value
| Type | Description |
|---|---|
| Background |
warning
Tooltip text explaining why the row is disabled.
Declaration
public string warning
Field Value
| Type | Description |
|---|---|
| string |