Java 类com.google.android.gms.maps.GoogleMap.SnapshotReadyCallback 实例源码

项目:XamarinAdmobTutorial    文件:SnapshotDemoActivity.java   
private void takeSnapshot() {
    if (mMap == null) {
        return;
    }

    final ImageView snapshotHolder = (ImageView) findViewById(R.id.snapshot_holder);

    final SnapshotReadyCallback callback = new SnapshotReadyCallback() {
        @Override
        public void onSnapshotReady(Bitmap snapshot) {
            // Callback is called from the main thread, so we can modify the ImageView safely.
            snapshotHolder.setImageBitmap(snapshot);
        }
    };

    if (mWaitForMapLoadCheckBox.isChecked()) {
        mMap.setOnMapLoadedCallback(new OnMapLoadedCallback() {
            @Override
            public void onMapLoaded() {
                mMap.snapshot(callback);
            }
        });
    } else {
        mMap.snapshot(callback);
    }
}
项目:HereAStory-Android    文件:SnapshotDemoActivity.java   
private void takeSnapshot() {
    if (mMap == null) {
        return;
    }

    final ImageView snapshotHolder = (ImageView) findViewById(R.id.snapshot_holder);

    final SnapshotReadyCallback callback = new SnapshotReadyCallback() {
        @Override
        public void onSnapshotReady(Bitmap snapshot) {
            // Callback is called from the main thread, so we can modify the ImageView safely.
            snapshotHolder.setImageBitmap(snapshot);
        }
    };

    if (mWaitForMapLoadCheckBox.isChecked()) {
        mMap.setOnMapLoadedCallback(new OnMapLoadedCallback() {
            @Override
            public void onMapLoaded() {
                mMap.snapshot(callback);
            }
        });
    } else {
        mMap.snapshot(callback);
    }
}
项目:referendum_1o_android    文件:GoogleMapWrapper.java   
@Override
public void snapshot(SnapshotReadyCallback callback) {
    map.snapshot(callback);
}
项目:referendum_1o_android    文件:GoogleMapWrapper.java   
@Override
public void snapshot(SnapshotReadyCallback callback, Bitmap bitmap) {
    map.snapshot(callback, bitmap);
}
项目:HereAStory-Android    文件:GoogleMapWrapper.java   
@Override
public void snapshot(SnapshotReadyCallback callback) {
    map.snapshot(callback);
}
项目:HereAStory-Android    文件:GoogleMapWrapper.java   
@Override
public void snapshot(SnapshotReadyCallback callback, Bitmap bitmap) {
    map.snapshot(callback, bitmap);
}
项目:mtransit-for-android    文件:GoogleMapWrapper.java   
@Override
public void snapshot(SnapshotReadyCallback callback) {
    map.snapshot(callback);
}
项目:mtransit-for-android    文件:GoogleMapWrapper.java   
@Override
public void snapshot(SnapshotReadyCallback callback, Bitmap bitmap) {
    map.snapshot(callback, bitmap);
}