Migrate
Migration notes for the Wikitude SDK Native API (Android)
Migrate from 7.1 to 7.2
- TrackerManager
- new function
isPlatformAssistedTrackingSupported
- should be used to guard methods that are not available when running with platform assisted tracking
- new function
- InstantTracker
- new function
canStartTracking
- new function
- InstantTrackerListener
- new function
onError
- new function
- InstantTrackerConfiguration
- when running with platform assisted tracking, some functionality is not available; these functions will raise an error through the error callback when called regardless
getTrackingPlaneOrientation
setTrackingPlaneOrientation
- new function
setSMARTEnabled
- new function
isSMARTEnabled
- when running with platform assisted tracking, some functionality is not available; these functions will raise an error through the error callback when called regardless
- CameraManager
- when running with platform assisted tracking, some functionality is not available; these functions will raise an error through the error callback when called regardless
getCameraPosition
setCameraPosition
getFocusMode
setFocusMode
isManualFocusAvailable
getManualFocusDistance
setManualFocusDistance
autoFocusRangeRestriction
getCurrentZoomLevel
setZoomLevel
getMaxZoomLevel
enableCameraFlashLight
disableCameraFlashLight
isCameraFlashLightEnabled
- when running with platform assisted tracking, some functionality is not available; these functions will raise an error through the error callback when called regardless
Migrate from 7.0 to 7.1
no changes required
Migrate from 2.1 to 7.0
- Minimum Android SDK Version was raised to Android 4.4(19)
- Update
minSdkVersion
to 19 in build.gradle or the manifest of your App.
- Update
- Plugins API:
- Plugin.h
- deprecated:
void update(const std::list<RecognizedTarget>& recognizedTargets_)
. Usevoid update(const RecognizedTargetsBucket& recognizedTargetsBucket_)
instead.
- deprecated:
- RecognizedTarget.h
- deprecated class
RecognizedTarget
. UseImageTarget
instead.
- deprecated class
- Plugin.h
Migrate from 2.0.1 to 2.1
PluginManager
:
Migrate from 1.4 to 2.0
- Input Plugin:
- deprecated:
- notifyRawCameraFieldOfViewChanged no longer used
- notifyDynamicCameraFieldOfViewChanged use getCameraFrameSettings->setFrameFieldOfView instead
- getInputFrameColorSpace use getCameraFrameSettings->setInputFrameColorSpace instead
- getInputFrameSize use getCameraFrameSettings->setInputFrameSize instead
- deprecated:
- WikitudeStartupConfiguration:
- removed use NativeStartupConfiguration instead
- new class NativeStartupConfiguration:
- parameters are set by setters instead of as constructor parameters like in the WikitudeStartupConfiguration
- removed Camera parameter from CameraManagerListener.onCameraOpened
- Trackers:
- deprecated:
- ClientTracker and its associated classes use TargetCollectionResource and an ImageTracker instead
- CloudTracker and its associated classes use CloudRecognitionService and an ImageTracker instead
- deprecated:
Migrate from 1.3 to 1.4
WikitudeSDK
introduces the new methodclearCache
which can be used to clear all SDK internal caches.
Migrate from 1.0 to 1.1
TrackerManager
methods for creating aClientTracker
for 2D have changed fromcreateClientTracker
tocreate2dClientTracker
TrackerManager
methods for creating aCloudTracker
for 2D have changed fromcreateCloudTracker
tocreate2dCloudTracker