public class WikitudeSDK extends Object
Constructor and Description |
---|
WikitudeSDK(ExternalRendering rendering_)
Creates an instance of the Wikitude Native SDK with with
ExternalRendering .There are two methods of rendering available in the Wikitude Native SDK. |
WikitudeSDK(InternalRendering rendering_)
Creates an instance of the Wikitude Native SDK with with
InternalRendering .There are two methods of rendering available in the Wikitude Native SDK. |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Deletes all cached files of this instance of the ArchitectView.
|
static void |
deleteRootCacheDirectory(android.content.Context context)
Deletes the root cache directory of the SDK.
|
CameraManager |
getCameraManager()
Returns an instance of the CameraManager which can be used to control the camera of the Wikitude SDK.
|
static PermissionManager |
getPermissionManager()
Returns an static object of Type
PermissionManager which can be used to handle Androids runtime permissions. |
PluginManager |
getPluginManager()
Returns an instance of the PluginManager which can be used to connect c++ Plugins to the Wikitude SDK.
|
static SDKBuildInformation |
getSDKBuildInformation()
Returns an object of Type
SDKBuildInformation which can be used to get information of the sdk build. This information is helpful when reporting bugs in the sdk. |
static String |
getSDKVersion()
Returns the SDK version in the format Major.Minor.Bugfix.
|
TrackerManager |
getTrackerManager()
Returns an instance of the TrackerManager which can be used to create Image/Instant or ObjectTrackers and their components.
|
void |
onCreate(android.content.Context applicationContext_,
android.content.Context activityContext_,
NativeStartupConfiguration startupConfiguration_)
Lifecycle method of the WikitudeSDK, this should be called during
Activity.onCreate(android.os.Bundle) . |
void |
onDestroy()
Lifecycle method of the WikitudeSDK, this should be called during
Activity.onDestroy() . |
void |
onPause()
Lifecycle method of the WikitudeSDK, this should be called during
Activity.onPause() . |
void |
onResume()
Lifecycle method of the WikitudeSDK, this should be called during
Activity.onResume() . |
android.opengl.GLSurfaceView |
setupWikitudeGLSurfaceView()
This method is needed when using
InternalRendering and can only be used after onCreate(android.content.Context, android.content.Context, com.wikitude.NativeStartupConfiguration) |
public WikitudeSDK(InternalRendering rendering_)
InternalRendering
.rendering_
- Instance of InternalRendering
public WikitudeSDK(ExternalRendering rendering_)
ExternalRendering
.rendering_
- Instance of ExternalRendering
public android.opengl.GLSurfaceView setupWikitudeGLSurfaceView()
InternalRendering
and can only be used after onCreate(android.content.Context, android.content.Context, com.wikitude.NativeStartupConfiguration)
public TrackerManager getTrackerManager()
public CameraManager getCameraManager()
public PluginManager getPluginManager()
public void onCreate(android.content.Context applicationContext_, android.content.Context activityContext_, NativeStartupConfiguration startupConfiguration_)
Activity.onCreate(android.os.Bundle)
.applicationContext_
- Context of the Application.activityContext_
- Context of the Activity that the WikitudeSDK is part of.startupConfiguration_
- NativeStartupConfiguration
to define how the Wikitude SDK should run.public void onPause()
Activity.onPause()
.public void onResume()
Activity.onResume()
.public void onDestroy()
Activity.onDestroy()
.public static String getSDKVersion()
public void clearCache()
public static void deleteRootCacheDirectory(android.content.Context context)
context
- Context for file operations.public static SDKBuildInformation getSDKBuildInformation()
SDKBuildInformation
public static PermissionManager getPermissionManager()
PermissionManager
which can be used to handle Androids runtime permissions.