RequiresApiOrNoop class

Annotation that indicates that some method requires a certain Android API level to work correctly.

If API level is lower than required, the annotated API will do nothing and return null (or false, if returned value indicates whether the operation was successful).

See also:

Constructors

RequiresApiOrNoop(int apiLevel)
Creates RequiresApiOrNoop.
const

Properties

apiLevel int
Required API level.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited