Added in API level 1
RegionIterator
open class RegionIterator
| kotlin.Any | |
| ↳ | android.graphics.RegionIterator |
Summary
Public constructors |
|
|---|---|
|
Construct an iterator for all of the rectangles in a region. |
|
Public methods |
|
|---|---|
| Boolean |
Return the next rectangle in the region. |
Protected methods |
|
|---|---|
| open Unit |
finalize() |
Public constructors
<init>
Added in API level 1
RegionIterator(region: Region!)
Construct an iterator for all of the rectangles in a region. This effectively makes a private copy of the region, so any subsequent edits to region will not affect the iterator.
| Parameters | |
|---|---|
region |
Region!: the region that will be iterated |
Public methods
next
Added in API level 1
fun next(r: Rect!): Boolean
Return the next rectangle in the region. If there are no more rectangles this returns false and r is unchanged. If there is at least one more, this returns true and r is set to that rectangle.
Protected methods
finalize
Added in API level 1
protected open fun finalize(): Unit
| Exceptions | |
|---|---|
java.lang.Throwable |
the Exception raised by this method |