public static interface

AmazonMap.SnapshotReadyCallback

com.amazon.geo.mapsv2.AmazonMap.SnapshotReadyCallback

Class Overview

Interface for receiving callbacks from the snapshot() methods.

Summary

Public Methods
abstract void onSnapshotReady(Bitmap snapshot)
Called when the snapshot of the map created using snapshot(SnapshotReadyCallback) or snapshot(SnapshotReadyCallback, Bitmap) is available.

Public Methods

public abstract void onSnapshotReady (Bitmap snapshot)

Called when the snapshot of the map created using snapshot(SnapshotReadyCallback) or snapshot(SnapshotReadyCallback, Bitmap) is available.

Note: When this callback is invoked from a call to snapshot(SnapshotReadyCallback, Bitmap), the Bitmap passed to the snapshot() method and the Bitmap available as a parameter on the onSnapshotReady() method are identical if the passed-in Bitmap has the same dimensions as the map, and the snapshot is taken successfully.

If the passed-in Bitmap does not have the same dimensions as the map, it is not used and the objects are not identical.

Parameters
snapshot The Bitmap containing the snapshot of the map. Will be null if the snapshot failed.