img property
Get the image as a Img.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes; use getImage when you only need raw image bytes.
Returns
- Img: image wrapper (may be invalid if no image is available). The
caller is responsible for validating the
Imginstance.
Also see:
- getImage — retrieve raw image bytes when needed.
Implementation
Img get img {
final OperationResult resultString = objectMethod(
pointerId,
'TrafficEvent',
'getImg',
);
return Img.init(resultString['result']);
}