Class MarkdownRenderer
Definition
- Namespace:
- Tizen.NUI.MarkdownRenderer
- Assembly:
- Tizen.NUI.MarkdownRenderer.dll
Provides a reusable NUI View for rendering Markdown text as UI components. Supports incremental UI updates, streaming input, and rich markdown features.
public class MarkdownRenderer : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceMarkdownRenderer()
Initializes a new instance of the MarkdownRenderer class.
Declaration
public MarkdownRenderer()
Properties
View SourceAsyncRendering
The UI elements are rendered asynchronously on a background thread whenever possible. Currently only UIText can be async rendered.
Declaration
public bool AsyncRendering { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Style
Gets the style settings applied to the rendered Markdown UI.
Declaration
public MarkdownStyle Style { get; }
Property Value
| Type | Description |
|---|---|
| MarkdownStyle |
Methods
View SourceClear()
Disposes all rendered views and clears the internal UI builder state.
Declaration
public void Clear()
ClearAndRender()
Clears all state and re-renders the last input markdown.
Declaration
public void ClearAndRender()
Dispose(DisposeTypes)
Disposes all rendered views, clears the internal UI builder state, and dispose itself.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
Overrides
View SourceRender(string)
Parses and renders the specified markdown string, updating the UI. Automatically reuses or disposes of views for efficient updates.
Declaration
public void Render(string markdown)
Parameters
| Type | Name | Description |
|---|---|---|
| string | markdown | The markdown text to render. |