PanoramaAPI
Comment:
- The PanoramaAPI enables you to display 360 degree panoramas using the device's built in panorama viewer.
ConnectionResult
Fields:
- API_UNAVAILABLE As Int
One of the API components you attempted to connect to is not available.
- CANCELLED As Int
The client cancelled the connection by calling Disconnect().
- DEVELOPER_ERROR As Int
The application is misconfigured.
- INTERNAL_ERROR As Int
An internal error occurred.
- INVALID_ACCOUNT As Int
The client attempted to connect to the service with an invalid account name specified.
- LICENSE_CHECK_FAILED As Int
The application is not licensed to the user. This error is not recoverable and will be treated as fatal.
- NETWORK_ERROR As Int
A network error occurred. Retrying should resolve the problem.
- RESOLUTION_REQUIRED As Int
Completing the connection requires some form of resolution.
- SERVICE_DISABLED As Int
The installed version of Google Play services has been disabled on this device.
- SERVICE_INVALID As Int
The version of the Google Play services installed on this device is not authentic.
- SERVICE_MISSING As Int
Google Play services is missing on this device.
- SERVICE_VERSION_UPDATE_REQUIRED As Int
The installed version of Google Play services is out of date.
- SIGN_IN_REQUIRED As Int
The client attempted to connect to the service but the user is not signed in.
- SUCCESS As Int
The connection was successful.
PanoramaAPI
Events:
- ConnectionFailed (ConnectionResult1 As Int)
- ConnectionSuccess
- ConnectionSuspended (SuspendedCause1 As Int)
- PanoramaInfoLoaded (PanoramaViewerIntent As Intent)
Fields:
- ConnectionResult As ConnectionResult
Contains the various ConnectionResult constants.
- SuspendedCause As SuspendedCause
Contains the various SuspendedCause constants.
Methods:
- Connect
Attempt to connect to the PanoramaAPI.
Will raise either event:
ConnectionFailed(ConnectionResult1 As Int)
ConnectionSuccess
- Disconnect
Disconnect from the PanoramaAPI.
- Initialize (EventName As String)
- IsConnected As Boolean
Returns whether the PanoramaAPI is connected.
- IsConnecting As Boolean
Returns whether the PanoramaAPI is trying to connect.
- IsInitialized As Boolean
- LoadPanoramaInfo (Uri1 As Uri)
Attempt to load the panorama referenced by the Uri.
Will raise the event:
PanoramaInfoLoaded(PanoramaViewerIntent As Intent)
PanoramaViewerIntent will not be initialized if it has not been possible to load the panorama.
- UriFromFile (Dir As String, FileName As String) As Uri
Returns a Uri created from a file location.
- UriFromParseableString (ParseableString As String) As Uri
Returns a Uri created from the parseable string.
SuspendedCause
Fields:
- CAUSE_NETWORK_LOST As Int
A connection suspended cause informing you that a peer device connection was lost.
- CAUSE_SERVICE_DISCONNECTED As Int
A connection suspended cause informing that the service has been killed.