public class

VDARDefaultARActivity

extends AppCompatActivity
implements VDARSDKControllerEventReceiver
java.lang.Object
   ↳ AppCompatActivity
     ↳ com.vidinoti.android.vdarsdk.VDARDefaultARActivity

Class Overview

Activity that is used for displaying AR content. For example, it is used for displaying a beacon AR content that is triggered from a list.

Summary

Public Constructors
VDARDefaultARActivity()
Public Methods
void onAnnotationsHidden()
Called when all annotations (i.e.
void onBackPressed()
void onCodesRecognized(ArrayList<VDARCode> codes)
Call when the given codes are recognized.
void onConfigurationChanged(Configuration newConfig)
We override this method to make the interface orientation smoother as it is properly handled internally in the PixLive SDK.
void onCreate(Bundle savedInstanceState)
Initiates the sample activity
boolean onCreateOptionsMenu(Menu menu)
void onEnterContext(VDARContext context)
Advertise the listener that the user is in the specified context
void onExitContext(VDARContext context)
Advertise the listener that the user is not anymore in the specified context
void onFatalError(String errorDescription)
Called when a fatal error has occurred within VDARSDK.
void onLowMemory()
Is called when the overall system is running low on memory.
boolean onOptionsItemSelected(MenuItem item)
void onPause()
Is called when the activity is paused.
void onPresentAnnotations()
Called when some annotations (i.e.
void onRequireSynchronization(ArrayList<VDARPrior> priors)
Called when some context or content requires the app to trigger a synchronization based on a given tag.
void onResume()
Is called when the activity is resumed.
void onTrackingStarted(int imageWidth, int imageHeight)
Advertise the listener that we have recognized an image and we are currently tracking it.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.vidinoti.android.vdarsdk.VDARSDKControllerEventReceiver

Public Constructors

public VDARDefaultARActivity ()

Public Methods

public void onAnnotationsHidden ()

Called when all annotations (i.e. AR Content) are removed (hidden) from the screen.

Note that this can be called multiple times and even if a model is currently recognized.

This can be used to show overlays that used to be displayed over the AR view when onPresentAnnotations() was called.

public void onBackPressed ()

public void onCodesRecognized (ArrayList<VDARCode> codes)

Call when the given codes are recognized.

public void onConfigurationChanged (Configuration newConfig)

We override this method to make the interface orientation smoother as it is properly handled internally in the PixLive SDK. It allows a proper rotation without having the system to restart the activity.

public void onCreate (Bundle savedInstanceState)

Initiates the sample activity

public boolean onCreateOptionsMenu (Menu menu)

public void onEnterContext (VDARContext context)

Advertise the listener that the user is in the specified context

Parameters
context The context the user is currently in

public void onExitContext (VDARContext context)

Advertise the listener that the user is not anymore in the specified context

Parameters
context The context the user was before it was out of it.

public void onFatalError (String errorDescription)

Called when a fatal error has occurred within VDARSDK.

It can be either a camera error or a certificate error preventing the application to use the SDK correctly.

Parameters
errorDescription The description of the error

public void onLowMemory ()

Is called when the overall system is running low on memory.

public boolean onOptionsItemSelected (MenuItem item)

public void onPause ()

Is called when the activity is paused.

public void onPresentAnnotations ()

Called when some annotations (i.e. AR Content) is displayed on screen.

Note that this can be called multiple times and even if no model is yet recognized.

This can be used to hide any overlays displayed over the AR view.

public void onRequireSynchronization (ArrayList<VDARPrior> priors)

Called when some context or content requires the app to trigger a synchronization based on a given tag. The app should start the synchronization with the given tag(s) right away or at the end of the currently running synchronization.

Parameters
priors a list of VDARPrior object to launch the synchronization for.

public void onResume ()

Is called when the activity is resumed.

public void onTrackingStarted (int imageWidth, int imageHeight)

Advertise the listener that we have recognized an image and we are currently tracking it.

Note this method is in practice not needed and you can provide an empty implementation in your application.

Parameters
imageWidth The width in pixel of the tracked image
imageHeight The height in pixel of the tracked image