KudanAR - Android  1.6.0
ARFragment Class Reference

Inherits Fragment.

Public Member Functions

void onCreate (Bundle savedInstanceState)
 
void onAttach (Activity activity)
 
void onResume ()
 
void onPause ()
 
void onDestroy ()
 
ARView getARView ()
 

Detailed Description

A class representing an AR Fragment.

Member Function Documentation

◆ getARView()

ARView ARFragment.getARView ( )

Gets the OpenGL ARView associated with the ARFragment.

Example of use:

// fragment is a previously created reference to the ARFragment.
ARView glView = fragment.getARView();
Returns
The OpenGL view:

◆ onAttach()

void ARFragment.onAttach ( Activity  activity)

Initialises ARRenderer with parent activity and adds ARView to view group.

Parameters
activity

◆ onDestroy()

void ARFragment.onDestroy ( )

Clears ARFragment.

◆ onPause()

void ARFragment.onPause ( )

Method called when the system pauses. The Gryo Manager and ARView will stop running at this time.

◆ onResume()

void ARFragment.onResume ( )

Method called when the activity will start interacting with the user. The Gyro Manager and ARView will start running at this time.


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