How to Use SnapshotReadyCallback function on HMS Map

MUSTAFA KURT
Huawei Developers
Published in
Nov 12, 2020

General view for this article is as below:

This article will mention about how to use SnapshotReadyCallback function on HMS Map. This SnapshotReadyCallback function provides snapshot view on current HMS map view. Different components can implement to show already taken snaps such as bitmap. Through this, user can snapshot of map view instead of using mobile device snapshot. And additionally we will save this take snapshot into local gallery.

HuaweiMap.SnapshotReadyCallback

Public Method Summary

Public Method Summary

NOTE: Before we start, I would like to emphasize that this article assumes that you already crated project and app in AGC page and create project in Android studio. If Note please reference ; https://medium.com/huawei-developers/implement-hms-map-kit-and-add-marker-with-mvp-design-in-java-257425637df9 to check how to create project and app in AGC page and create project in Android Studio.

Note: Please do not forget to activate MAP Kit in AppGalery Connect (Project Setting → Manage API) and to add build dependencies to app level build.gradle file.

Note: Please do not forget to add below permissions into AndroidManifest.xml file.

Root level build.gradle file. ‘com.huawei.agconnect:agcp:1.2.1.301’ or never version must settle in this file.

Layout xml file;

MainActivity.java file;

Application view;

Thanks for you have read this article.

I hope it will be helpful.

Hope to see you in next articles.

Until that time, bye.

References

--

--