| class info |
| com.huawei.hms.mlsdk.document.MLDocument.Interval |
| Represents a text interval. Three attributes are included: 1. Space; 2. Newline character; 3. Unknown interval type. |
| Type | Name | Desc |
| int | NEW_LINE_CHARACTER | Newline character. |
| int | SPACE | Space. |
| int | OTHER | Unknown interval type. |
| Return type | Method name |
| int | getIntervalType() |
| boolean | isTextFollowed() |
| Constant |
| public static final int NEW_LINE_CHARACTER |
| Newline character. |
| Constant value: 8 |
| Constant |
| public static final int SPACE |
| Space. |
| Constant value: 6 |
| Constant |
| public static final int OTHER |
| Unknown interval type. |
| Constant value: 5 |
| Method |
| public int getIntervalType() |
| Obtains the type of the detected text interval. |
Return
| Type | desc |
| int | Returns the text interval type. Options: SPACE (space); NEW_LINE_CHARACTER (newline character); OTHER (unknown). |
| Method |
| public boolean isTextFollowed() |
| Determines whether there is text after the text interval. |
Return
| Type | desc |
| boolean | true: There is text after the text interval; false: There is no text after the text interval. |