BaseBlock
Abstract base class for all existing block elements.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: Unity.Android.Gradle
- Assembly: Unity.Android.Gradle
- Inherits from: BaseElement
- Implements: ICloneable
public abstract class BaseBlock : BaseElement, ICloneable
Remarks
Empty blocks don't appear in the resulting file. A block is empty if it has no children and has no raw value set.
Constructors
Constructor | Description |
|---|---|
| BaseBlock(Unity.Android.Gradle.BaseBlock) | Element constructor. |
Methods
Method | Description |
|---|---|
| AddElement | Adds a new element as a child. |
| Clear | Clears the content of this element. |
| GetElement | Gets an element by ID. |
| GetElements | Gets all custom child elements. |
| GetName | Gets the name of the block. In some cases, the name is the signature of the function. |
| GetRaw | Gets the raw value of this block. |
| GetUniqueName | Gets the unique name of the element. |
| RemoveElement | Removes a child element by id. |
| SetRaw | Sets a raw string value to this block. |
| ToString | Gets a serialized value from this block. |