FrameDemandFlag class final

How a frame demand behaves.

Without flags, a demand draws a frame when the map changed since the last one, and otherwise finishes with RenderResult.noUpdate. A session with a surface target shows each frame that it draws.

See mln_frame_demand_flag in the C API reference.

Constructors

FrameDemandFlag.fromRawValue(int rawValue)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
rawValue → int
The value's C representation, which may be one this binding predates.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(FrameDemandFlag other) → bool
Whether every bit of other is set in this value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator &(FrameDemandFlag other) → FrameDemandFlag
inherited
operator ==(Object other) → bool
The equality operator.
inherited
operator |(FrameDemandFlag other) → FrameDemandFlag
inherited

Constants

force → const FrameDemandFlag
Draws a frame even when nothing changed since the last one. It can't be combined with FrameDemandFlag.waitForUpdate.
none → const FrameDemandFlag
No flags.
waitForUpdate → const FrameDemandFlag
When the map has nothing new to draw, waits for its next update instead of finishing with RenderResult.noUpdate.