Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AGenUI/AGenUI
/ functions
Functions
4,245 in github.com/AGenUI/AGenUI
⨍
Functions
4,245
◇
Types & classes
785
↓ 11 callers
Method
getSurface
Returns a Surface @param surfaceId Unique Surface identifier @return Surface instance, or null if not found @hide
platforms/android/src/main/java/com/amap/agenui/render/surface/SurfaceManager.java:379
↓ 11 callers
Method
getView
()
platforms/android/src/main/java/com/amap/agenui/render/component/A2UIComponent.java:527
↓ 11 callers
Method
hasSnapshot
core/src/surface/virtual_dom/agenui_virtual_dom_node.cpp:109
↓ 11 callers
Method
initialize
core/src/surface/agenui_template_registry.cpp:21
↓ 11 callers
Method
invokeNormalizePosition
(ColorValue.ColorStop cs, boolean forSweep)
platforms/android/src/test/java/com/amap/agenui/render/style/GradientDrawableFactoryLogicTest.java:421
↓ 11 callers
Method
parse
core/src/style_parser/agenui_color_parser.cpp:31
↓ 11 callers
Method
parseBoolean
Parse boolean value
platforms/android/src/main/java/com/amap/agenui/render/component/impl/ModalComponent.java:139
↓ 11 callers
Method
setEnabled
(boolean enabled)
platforms/android/src/main/java/com/amap/agenui/render/component/A2UIComponent.java:132
↓ 11 callers
Method
stop
core/src/module/agenui_engine_impl.cpp:49
↓ 10 callers
Method
ProcessChunk
ProcessChunk processes a chunk of text and returns any complete A2UI messages found. This is the primary entry point for the streaming parser.
agent_sdks/go/parser/streaming.go:232
↓ 10 callers
Method
drawLine
(float startX, float startY, float stopX, float stopY, Paint paint)
platforms/android/src/main/java/com/amap/agenui/render/component/widget/A2UITextView.java:276
↓ 10 callers
Method
drawRoundRect
(RectF rect, float rx, float ry, Paint paint)
platforms/android/src/main/java/com/amap/agenui/render/component/widget/A2UITextView.java:346
↓ 10 callers
Method
getFactory
Returns the component factory for the given type @param componentType Component type @return Component factory instance, or null if not found
platforms/android/src/main/java/com/amap/agenui/render/component/ComponentRegistry.java:72
↓ 10 callers
Method
getHeight
platforms/harmony/agenui/src/main/cpp/a2ui/render/a2ui_component.h:239
↓ 10 callers
Method
getMeasurementManager
core/src/module/agenui_engine_impl.cpp:264
↓ 10 callers
Function
isCalcExpression
Helper: check if a string is a calc() expression
core/src/style_parser/agenui_color_parser.cpp:1618
↓ 10 callers
Method
isTemplate
core/src/surface/agenui_template_registry.cpp:84
↓ 10 callers
Method
markDirty
core/src/surface/yoga_node/agenui_yoga_node.cpp:106
↓ 10 callers
Function
parsePercent
core/src/surface/yoga_node/agenui_yoga_internal_parse.cpp:61
↓ 10 callers
Method
pxToA2ui
(Context context, float value)
platforms/android/src/main/java/com/amap/agenui/render/style/StyleHelper.java:1228
↓ 10 callers
Method
registerFunction
core/src/module/agenui_engine_impl.cpp:159
↓ 10 callers
Method
selectCatalog
selectCatalog selects the component catalog based on client capabilities.
agent_sdks/go/schema/manager.go:137
↓ 10 callers
Method
setJustifyContent
platforms/harmony/agenui/src/main/cpp/a2ui/render/a2ui_node.h:484
↓ 9 callers
Method
LoadExamples
LoadExamples loads and optionally validates examples from a directory or glob pattern.
agent_sdks/go/schema/catalog.go:359
↓ 9 callers
Function
ParseResponse
ParseResponse parses the LLM response into a list of ResponsePart objects. It extracts A2UI JSON blocks delimited by <a2ui-json> and </a2ui-json> tag
agent_sdks/go/parser/parser.go:50
↓ 9 callers
Method
SurfaceID
SurfaceID returns the current surface ID.
agent_sdks/go/parser/streaming.go:169
↓ 9 callers
Method
clearDirty
core/src/surface/component_manager/agenui_component_model.cpp:397
↓ 9 callers
Method
computeContentBoundsPx
Bounding box of all current frames; drives content size. Uses Level-2 cache when available (invalidated together with Level-1 in onMeasure). Mirrors
platforms/android/src/main/java/com/amap/agenui/render/component/impl/list/YogaLayoutManager.java:191
↓ 9 callers
Method
createTextView
(String text, int sizeSp, int color, boolean bold)
playground/android/app/src/main/java/com/amap/agenuiplayground/stability/StabilityTestActivity.java:495
↓ 9 callers
Function
expectPercent
tests/cpp/style_parser/edge_insets_parser_test.cpp:19
↓ 9 callers
Method
getSurfaceId
()
platforms/android/src/main/java/com/amap/agenui/render/surface/Surface.java:500
↓ 9 callers
Function
hexCharToInt
Helper: convert hex character to integer value (0-15), returns 16 on error
core/src/style_parser/agenui_color_parser.cpp:1560
↓ 9 callers
Method
invokeCollectStops
(ColorValue.ColorStop[] raw, boolean forSweep)
platforms/android/src/test/java/com/amap/agenui/render/style/GradientDrawableFactoryLogicTest.java:442
↓ 9 callers
Method
isHorizontal
()
platforms/android/src/main/java/com/amap/agenui/render/component/impl/ListComponent.java:82
↓ 9 callers
Method
logInternal
(int level, String tag, String message, Throwable tr)
platforms/android/src/main/java/com/amap/agenui/render/utils/AGenUILogger.java:302
↓ 9 callers
Function
parseLength
Parse a single CSS length token (e.g. "12px", "12em", or numeric JSON value). Returns true on success and writes the a2ui-px value into `outPx`.
platforms/harmony/agenui/src/main/cpp/a2ui/utils/a2ui_padding_utils.h:56
↓ 9 callers
Function
parseLengthValue
core/src/surface/yoga_node/agenui_css_style_converter.cpp:1440
↓ 9 callers
Method
parseRoot
Parses the snapshot JSON serialized from C++ `ComponentSnapshot.stringify()`.
platforms/android/src/main/java/com/amap/agenui/render/measurement/MeasurementSupport.java:32
↓ 9 callers
Method
registerComponent
Registers a custom component factory <p> If the component type already exists, it will be overwritten. Takes effect immediately after registration and
platforms/android/src/main/java/com/amap/agenui/AGenUI.java:291
↓ 9 callers
Method
request
()
platforms/android/src/main/java/com/amap/agenui/render/component/A2UIComponent.java:136
↓ 9 callers
Method
run
()
playground/android/app/src/main/java/com/amap/agenuiplayground/PerformanceMonitor.java:120
↓ 9 callers
Method
setScale
platforms/harmony/agenui/src/main/cpp/a2ui/render/a2ui_node.h:161
↓ 9 callers
Method
setState
(State state)
platforms/android/src/main/java/com/amap/agenui/render/component/view/CustomAudioPlayerView.java:281
↓ 9 callers
Method
takeOrphanSnapshot
core/src/surface/virtual_dom/agenui_virtual_dom.cpp:90
↓ 9 callers
Method
updateComponents
core/src/surface/agenui_surface.cpp:158
↓ 8 callers
Method
CatalogID
CatalogID returns the catalog ID from the catalog schema.
agent_sdks/go/schema/catalog.go:165
↓ 8 callers
Method
applyOpacity
(int color, float opacity)
platforms/android/src/main/java/com/amap/agenui/render/utils/MagicRevealTransition.java:326
↓ 8 callers
Method
createSuccess
Creates a success result. @param data Return value (String / JSONObject / JSONArray / Number / Boolean / null)
platforms/android/src/main/java/com/amap/agenui/function/FunctionResult.java:34
↓ 8 callers
Method
drawRect
(float left, float top, float right, float bottom, Paint paint)
platforms/android/src/main/java/com/amap/agenui/render/component/widget/A2UITextView.java:306
↓ 8 callers
Method
env
core/src/jni/jni_message_listener_bridge.cpp:56
↓ 8 callers
Method
extractStyles
Extracts the styles object from properties. styles may be: 1. Map<String, Object> - used directly 2. String (JSON) - parsed first 3. null
platforms/android/src/main/java/com/amap/agenui/render/component/A2UIComponent.java:323
↓ 8 callers
Method
getDisplayName
()
playground/android/app/src/main/java/com/amap/agenuiplayground/story/SubStory.java:44
↓ 8 callers
Method
getParentId
core/src/surface/component_manager/agenui_component_manager.cpp:48
↓ 8 callers
Method
hasDirty
* @brief Whether this component has any pending dirty attribute marks. */
core/src/surface/component_manager/agenui_component_model.h:208
↓ 8 callers
Method
invokeKeywordSize
(int sizeKeyword, int shape, float[] sides)
platforms/android/src/test/java/com/amap/agenui/render/style/GradientDrawableFactoryLogicTest.java:435
↓ 8 callers
Method
isAsync
core/src/function_call/agenui_functioncall_resolution.cpp:93
↓ 8 callers
Method
isCompleted
core/src/function_call/agenui_functioncall_resolution.cpp:97
↓ 8 callers
Method
loadAssetFile
Read file content from assets
playground/android/app/src/main/java/com/amap/agenuiplayground/story/StoryLoader.java:365
↓ 8 callers
Method
measure
(String paramJson, float maxWidth, int width
platforms/android/src/main/java/com/amap/agenui/render/measurement/IconMeasurer.java:23
↓ 8 callers
Method
notifyRenderFinish
platforms/harmony/agenui/src/main/cpp/a2ui/a2ui_component_render_observable.cpp:54
↓ 8 callers
Method
onRenderFinish
(String surfaceId, String componentId, String type,
platforms/android/src/main/java/com/amap/agenui/render/surface/SurfaceLayoutDispatcher.java:35
↓ 8 callers
Method
parseInt
core/src/style_parser/agenui_color_parser.cpp:1332
↓ 8 callers
Method
removeListener
Removes a Surface listener @param listener ISurfaceManagerListener instance
platforms/android/src/main/java/com/amap/agenui/render/surface/SurfaceManager.java:150
↓ 8 callers
Function
replaceAll
platforms/harmony/agenui/src/main/cpp/a2ui/render/components/richtext_component.cpp:88
↓ 8 callers
Method
setAttribute
core/src/surface/component_manager/agenui_component_model.cpp:51
↓ 8 callers
Method
setCornerRadius
Sets the corner radius
platforms/android/src/main/java/com/amap/agenui/render/component/view/CustomCheckBoxView.java:203
↓ 8 callers
Function
setDefaultLogMinLevel
core/src/agenui_logger_internal.cpp:55
↓ 8 callers
Method
setInnerGuards
* @brief Set inner guards that are cascaded on beginBatch/endBatch. * * When this guard opens a batch window (outermost beginBatch), it also
core/src/agenui_batch_guard.h:48
↓ 8 callers
Method
size
* @brief Get the length of the UTF-8 string. */
core/src/jni/jni_scoped_utf_chars.h:62
↓ 8 callers
Method
stringify
core/src/surface/virtual_dom/agenui_component_snapshot.cpp:15
↓ 8 callers
Method
submitUIDataModel
Submits a UI data model change to the Native layer @param surfaceId Surface ID @param componentId Component ID @param changeData Changed content (
platforms/android/src/main/java/com/amap/agenui/render/component/ComponentEventDispatcher.java:35
↓ 8 callers
Function
trimWhitespace
Trim leading/trailing ASCII whitespace.
core/src/surface/component_manager/data_value/agenui_data_value_parser.cpp:32
↓ 8 callers
Method
unregisterFunction
core/src/module/agenui_engine_impl.cpp:183
↓ 7 callers
Function
RemoveStrictValidation
RemoveStrictValidation recursively removes additionalProperties: false from a JSON schema, making it more lenient for LLM-generated output.
agent_sdks/go/schema/common_modifiers.go:20
↓ 7 callers
Method
WithPruning
WithPruning returns a new catalog with pruned components and messages.
agent_sdks/go/schema/catalog.go:178
↓ 7 callers
Method
asInt
core/src/surface/agenui_serializable_data_impl.cpp:154
↓ 7 callers
Method
closeDrawer
Close drawer
playground/android/app/src/main/java/com/amap/agenuiplayground/A2UIPlaygroundActivity.java:605
↓ 7 callers
Method
create
core/src/surface/agenui_serializable_data_impl.cpp:17
↓ 7 callers
Function
createSurfaceJson
tests/cpp/integration/engine_destroy_chain_test.cpp:41
↓ 7 callers
Method
destroy
Destroys the Engine and releases all Native resources. This method should be called when the application exits.
platforms/android/src/main/java/com/amap/agenui/AGenUI.java:358
↓ 7 callers
Function
destroyAGenUIEngine
core/src/module/agenui_engine_entry.cpp:28
↓ 7 callers
Function
expectAuto
tests/cpp/style_parser/edge_insets_parser_test.cpp:25
↓ 7 callers
Function
extractBooleanValue
platforms/harmony/agenui/src/main/cpp/a2ui/utils/a2ui_parse_utils.h:59
↓ 7 callers
Function
findSurfaceManagerByInstanceId
platforms/harmony/agenui/src/main/cpp/napi_init.cpp:233
↓ 7 callers
Method
fixJSON
fixJSON attempts to fix a partial JSON fragment by adding missing closing delimiters.
agent_sdks/go/parser/streaming.go:341
↓ 7 callers
Method
getDefaultDuration
Returns the default animation duration in milliseconds.
platforms/android/src/main/java/com/amap/agenui/render/utils/ImageTransitionManager.java:46
↓ 7 callers
Method
getDefaultTransition
Returns the default transition animation.
platforms/android/src/main/java/com/amap/agenui/render/utils/ImageTransitionManager.java:28
↓ 7 callers
Function
getEngineContext
core/src/module/agenui_engine_context.cpp:7
↓ 7 callers
Method
getNode
core/src/surface/yoga_node/agenui_yoga_node_manager.cpp:30
↓ 7 callers
Method
getPropertyStringValue
tests/cpp/surface/component_property_spec_test.cpp:22
↓ 7 callers
Method
getSize
(@NonNull Paint paint, CharSequence text, int start, int end, @Nullable Paint.FontMetri
platforms/android/src/main/java/com/amap/agenui/render/component/impl/span/CustomBackgroundSpan.java:77
↓ 7 callers
Method
getWidth
platforms/harmony/agenui/src/main/cpp/a2ui/render/a2ui_component.h:238
↓ 7 callers
Method
hasStyle
tests/cpp/surface/component_property_spec_test.cpp:31
↓ 7 callers
Method
hashCode
()
platforms/android/src/main/java/com/amap/agenui/render/layout/YogaAbsoluteLayout.java:57
↓ 7 callers
Method
isBool
core/src/surface/agenui_serializable_data_impl.cpp:185
↓ 7 callers
Method
isEnabled
Check if logging is currently enabled. @return true if logging is enabled
platforms/android/src/main/java/com/amap/agenui/render/utils/AGenUILogger.java:89
↓ 7 callers
Method
isValid
* @brief Check whether the layout info is valid * @return false if all values are 0, true otherwise */
core/src/surface/virtual_dom/agenui_component_snapshot.h:27
↓ 7 callers
Function
mapStringToArkUIFontWeight
Parse a font-weight string to ArkUI enum (for render layer). Accepts "bold", "normal", or numeric string ("100".."900"). Returns ARKUI_FONT_WEIGHT_BOL
platforms/harmony/agenui/src/main/cpp/a2ui/utils/a2ui_font_weight_utils.h:28
↓ 7 callers
Method
onSurfaceSizeChanged
(String surfaceId, float width, float height)
platforms/android/src/main/java/com/amap/agenui/render/surface/SurfaceLayoutDispatcher.java:42
↓ 7 callers
Method
run
()
platforms/android/src/main/java/com/amap/agenui/render/component/impl/CarouselComponent.java:398
← previous
next →
201–300 of 4,245, ranked by callers