public abstract class ARActivity
extends Activity
supplyFrameLayout.
Renderer. This allows the subclass to handle OpenGL drawing calls on its own.| Modifier and Type | Field and Description |
|---|---|
static int |
REQUEST_CAMERA_PERMISSION_RESULT
Used to match-up permission user request to user response
|
| Constructor and Description |
|---|
ARActivity() |
| Modifier and Type | Method and Description |
|---|---|
Context |
getAppContext() |
GLSurfaceView |
getGLView()
Returns the GL surface view.
|
ARRenderer |
getRenderer() |
void |
onClick(View v) |
protected void |
onCreate(Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(Menu menu) |
boolean |
onOptionsItemSelected(MenuItem item) |
protected void |
onPause() |
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults) |
void |
onResume() |
protected void |
onStart() |
void |
onStop() |
void |
onWindowFocusChanged(boolean hasFocus) |
protected void |
showInfo() |
protected abstract FrameLayout |
supplyFrameLayout()
Allows subclasses to supply a
FrameLayout which will be populated
with a camera preview and GL surface view. |
protected abstract ARRenderer |
supplyRenderer()
Allows subclasses to supply a custom
Renderer. |
public static final int REQUEST_CAMERA_PERMISSION_RESULT
public Context getAppContext()
protected void onCreate(Bundle savedInstanceState)
protected abstract ARRenderer supplyRenderer()
Renderer.Renderer to use.protected abstract FrameLayout supplyFrameLayout()
FrameLayout which will be populated
with a camera preview and GL surface view.FrameLayout to use.protected void onStart()
public void onResume()
protected void onPause()
public void onStop()
public boolean onCreateOptionsMenu(Menu menu)
public boolean onOptionsItemSelected(MenuItem item)
protected void showInfo()
public void onWindowFocusChanged(boolean hasFocus)
public void onClick(View v)
public void onRequestPermissionsResult(int requestCode,
@NonNull
java.lang.String[] permissions,
@NonNull
int[] grantResults)
public GLSurfaceView getGLView()
public ARRenderer getRenderer()