Class ReactionPicker
ReactionPicker UI element. Displays an emoji grid for selecting reactions.
Implements
Inherited Members
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.TryGetBinding(BindingId, out Binding)
VisualElement.TryGetDataSourceContext(BindingId, out DataSourceContext)
VisualElement.TryGetLastBindingToUIResult(in BindingId, out BindingResult)
VisualElement.TryGetLastBindingToSourceResult(in BindingId, out BindingResult)
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, CallbackOptions)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, CallbackOptions)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, CallbackOptions)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, CallbackOptions)
CallbackEventHandler.NotifyPropertyChanged(in BindingId)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
[UxmlElement]
public class ReactionPicker : BaseVisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, 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> |