Class ReactionPicker
ReactionPicker UI element. Displays an emoji grid for selecting reactions.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class ReactionPicker : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
ReactionPicker()
Default constructor.
Declaration
public ReactionPicker()
Fields
gridUssClassName
The ReactionPicker grid styling class.
Declaration
public const string gridUssClassName = "appui-reaction-picker__grid"
Field Value
| Type | Description |
|---|---|
| string |
searchFieldUssClassName
The ReactionPicker search field styling class.
Declaration
public const string searchFieldUssClassName = "appui-reaction__search-field"
Field Value
| Type | Description |
|---|---|
| string |
tabsUssClassName
The ReactionPicker tabs styling class.
Declaration
public const string tabsUssClassName = "appui-reaction__tabs"
Field Value
| Type | Description |
|---|---|
| string |
ussClassName
The ReactionPicker main styling class.
Declaration
public const string ussClassName = "appui-reaction-picker"
Field Value
| Type | Description |
|---|---|
| string |
Properties
contentContainer
The content container of the ReactionPicker.
Declaration
public override VisualElement contentContainer { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
Overrides
emojiProvider
The emoji provider used to populate the grid.
Declaration
public EmojiDatabase emojiProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| EmojiDatabase |
Methods
Refresh()
Clears and rebuilds the emoji grid from the current emojiProvider.
Declaration
public void Refresh()
Events
emojiSelected
Event fired when an emoji is selected.
Declaration
public event Action<string> emojiSelected
Event Type
| Type | Description |
|---|---|
| Action<string> |