public class

StreetViewPanoramaFragment

extends Fragment
java.lang.Object
   ↳ android.app.Fragment
     ↳ com.amazon.geo.mapsv2.StreetViewPanoramaFragment

Class Overview

Street views are not currently supported in the Amazon Maps API. This class provides stubs to ensure that developers can make minimal code changes when porting their apps from other platforms.

Do not attempt to inflate a StreetViewPanoramaFragment without first verifying whether the street view API is available.

Checking for Street View Support

It is recommended that you check whether the street view API is supported before attempting to use any of the APIs or displaying any related UI to the user:

  • If you are writing code only for the Amazon Maps API, do not use any of the street view API calls.
  • If you are porting your app from another platform, use the following code snippet to determine whether street view is available.
     
     boolean isStreetViewSupported = true;
     try {
         Class.forName("com.amazon.geo.mapsv2.util.AmazonMapsRuntimeUtil");
         // The Amazon API is present
         isStreetViewSupported = false;
     } catch (ClassNotFoundException e) {
     }

Summary

[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
StreetViewPanoramaFragment()
This class can not be instantiated.
Public Methods
final StreetViewPanorama getStreetViewPanorama()
This method is deprecated. This method is deprecated as of Amazon Maps V2.2. Please use getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback) instead. The callback will guarantee a non-null StreetViewPanorama instance.
void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback callback)
This method is not implemented.
static StreetViewPanoramaFragment newInstance()
This class can not be instantiated.
static StreetViewPanoramaFragment newInstance(StreetViewPanoramaOptions options)
This class can not be instantiated.
[Expand]
Inherited Methods
From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.View.OnCreateContextMenuListener

Public Constructors

public StreetViewPanoramaFragment ()

This class can not be instantiated.

Throws
UnsupportedOperationException The street view API is not supported.

Public Methods

public final StreetViewPanorama getStreetViewPanorama ()

This method is deprecated.
This method is deprecated as of Amazon Maps V2.2. Please use getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback) instead. The callback will guarantee a non-null StreetViewPanorama instance.

This method is not implemented.

Returns
  • null as this is not supported.

public void getStreetViewPanoramaAsync (OnStreetViewPanoramaReadyCallback callback)

This method is not implemented. Gets a non-null StreetViewPanorama that will be ready after the callback returns. This was added in Amazon Maps V2.2.

Parameters
callback This will be called on the main thread after the StreetViewPanorama is ready.

public static StreetViewPanoramaFragment newInstance ()

This class can not be instantiated.

Throws
UnsupportedOperationException The street view API is not supported.

public static StreetViewPanoramaFragment newInstance (StreetViewPanoramaOptions options)

This class can not be instantiated.

Throws
UnsupportedOperationException The street view API is not supported.