java.lang.Object | |
↳ | com.amazon.geo.mapsv2.util.AmazonMapsRuntimeUtil |
Class providing utility methods for the Amazon Maps API.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AMAZON_MAPS_RUNTIME_PACKAGE | Name of the Amazon Maps API package. | |||||||||
String | ERROR_DIALOG_TAG | Tag used for error dialog fragments. | |||||||||
String | TAG | Tag used when writing messages to the log. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a dialog for a given error with a cancel listener.
| |||||||||||
Creates a dialog for a given error.
| |||||||||||
Gets an intent to handle a recoverable error such as a required update.
| |||||||||||
Gets a readable string for a given error code.
| |||||||||||
Returns a
String containing license info for open source software
used by the library. | |||||||||||
Gets the remote context of the Amazon Maps services.
| |||||||||||
Gets the resources of the remote context.
| |||||||||||
Returns an integer code indicating whether the Amazon Maps API library is
available on the device.
| |||||||||||
Verifies if the uid belongs to an Amazon signed app.
| |||||||||||
Returns a boolean value indicating whether the specified error is
recoverable through user interaction such as installing an update.
| |||||||||||
Shows a dialog fragment for a given error.
| |||||||||||
Shows a dialog fragment for a given error with a cancel listener.
| |||||||||||
Shows a notification for a given error.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Name of the Amazon Maps API package.
Tag used for error dialog fragments.
Tag used when writing messages to the log.
Creates a dialog for a given error with a cancel listener.
errorCode | The ConnectionResult error code. |
---|---|
activity | The parent activity. |
requestCode | The request code. Can be 0. |
cancelListener | The dialog cancel listener. |
Creates a dialog for a given error.
errorCode | The ConnectionResult error code. |
---|---|
activity | The parent activity. |
requestCode | The request code. Can be 0. |
Gets an intent to handle a recoverable error such as a required update.
errorCode | The ConnectionResult error code. |
---|---|
context | The app context. |
requestCode | The request code. Can be 0. |
Gets a readable string for a given error code.
errorCode | The ConnectionResult error code.
|
---|
Returns a String
containing license info for open source software
used by the library.
context | The app context. |
---|
Gets the remote context of the Amazon Maps services.
hostContext | The app context. |
---|
Gets the resources of the remote context.
context | The app context. |
---|
Returns an integer code indicating whether the Amazon Maps API library is
available on the device. Refer to ConnectionResult
for possible
error values.
context | The app context. |
---|
SUCCESS
if the Amazon Maps API is
available. A non-zero ConnectionResult
code if the API is
not available.
Verifies if the uid belongs to an Amazon signed app.
SecurityException | if the uid doesn't belong to an Amazon signed app. |
---|
Returns a boolean value indicating whether the specified error is recoverable through user interaction such as installing an update.
errorCode | The ConnectionResult error code. |
---|
true
if the specified error is recoverable, {code false}
otherwise.
Shows a dialog fragment for a given error.
errorCode | The ConnectionResult error code. |
---|---|
activity | The parent activity. |
requestCode | The request code. Can be 0. |
true
if the dialog fragment is successfully shown.
Shows a dialog fragment for a given error with a cancel listener.
errorCode | The ConnectionResult error code. |
---|---|
activity | The parent activity. |
requestCode | The request code. Can be 0. |
cancelListener | The dialog cancel listener. |
true
if the dialog fragment is successfully shown.
Shows a notification for a given error.
errorCode | The ConnectionResult error code. |
---|---|
context | The app context. |