LuminAR Code Docs
Code documentation for the LuminAR Plugins, developed for Luminary Technology. For the AUT 2015, BCIS Project Course
GPSManager Class Reference
Inheritance diagram for GPSManager:

Public Member Functions

string getUserLocation ()
 
void setUserLocation (string location)
 

Private Member Functions

void Start ()
 
void Update ()
 

Private Attributes

AndroidJavaClass gpsActivityJavaClass
 

Static Private Attributes

static string userLocation
 
static float xValue
 
static float yValue
 
static float zValue
 
static float degrees
 

Detailed Description

Accessing the GPS Data over JNI calls Please check the Java sources under Plugins/Android

Member Function Documentation

string GPSManager.getUserLocation ( )
void GPSManager.setUserLocation ( string  location)
void GPSManager.Start ( )
private

The start method that attaches the .jar plugin to the unity thread to access the java functions.

void GPSManager.Update ( )
private

The update functions in Unity is called multiple times a second. This function is used to get the bearing of the user and display it updates with the update function call in unity. This function also grabs the user location and displays that to the user. It also updates accordingly.

Member Data Documentation

float GPSManager.degrees
staticprivate

Float that stores the bearing of the user in degrees (0-360).

AndroidJavaClass GPSManager.gpsActivityJavaClass
private

AndroidJavaClass that will access the .jar for android functions.

string GPSManager.userLocation
staticprivate

This class is the bridge between the Unity plugins and the JAVA plugin that does the Android functions. The functions in this class are used by the other Plugins.

See also
DatabaseConnect.cs
DatabaseDownload.cs
DatabaseFunctions.csString that holds the user location in text.
float GPSManager.xValue
staticprivate

Float that stores x value for the user's bearing.

float GPSManager.yValue
staticprivate

Float that stores y value for the user's bearing.

float GPSManager.zValue
staticprivate

Float that stores z value for the user's bearing.


The documentation for this class was generated from the following file: