VDARSDKController Class Reference
| Inherits from | NSObject |
| Conforms to | VDARImageReceiver |
| Declared in | VDARSDKController.h |
Overview
Manage the local Context DB and dispatch events when modes are detected / lost.
Warning: No instance of VDARSDKController should be created manually. Use only the [VDARSDKController startSDK:withLicenseKey:] method to create a shared instance and to use it.
Tasks
Other Methods
-
internalBrowserClassNameSet the class to be instancied when the internal browser should be opened.
property -
afterLoadingQueueThe Context DB is loaded asynchronously at startup and therefore might not be available immediatly. This can known when a given function (add or remove) returns an error or by checking the appropriate property. In order to execute those operation when the DB is loaded, the operations can be added to the queue represented by this property.
property -
dbLoadedDefines whether or not the local Context DB is loaded or not. Any call related to the DB will fail if this property is not set to YES.
property -
detectionDelegatesContext detection delegates.
property -
sensorDelegatesSensor detection delegates.
property -
modelsDBDirectoryThe Context DB directory where all the data is stored.
property -
displayModelDebugOverlayDisplay the debug overlay to locate the context properly even if the context has no annotation.
property -
imageSenderThe image sender which will send frame to the system. This is needed starting from version 2.0.11b
property -
remoteAPIKeyThe Remote API key generated by the AR Manager website.
property -
contextIDsThe id of all contexts
property -
availableContextIDsThe id of all available contexts.
property -
pendingNotificationsThe list of all notifications that are pending.
property -
preventNotificationsPrevent spurious notifications to be displayed.
property -
deviceUUIDThe user device UUID
property -
– getContext:Get the context of a given id
-
– loadContext:Load the context of a given id
-
– unloadAllNonRootContextsUnload all the contexts in memory
Code recognition
-
enableCodesRecognitionWhen set to YES, code recognition is also performed while trying to recognize a VDARContext.
property -
recognizableCodesSelect which types of codes should be recognized by the system.
property
Notifications
-
enableNotificationsEnable push notifications support in the SDK.
property -
enableDefaultNotificationControllerWhen a notification arrives in a state where the application is open, the SDK will handle it and display an alert with the notification. You can disable this behaviour by setting this flag to NO. By default, it is set to YES.
property -
enablePendingNotificationsWhen a beacon notification arrives in a state where the application is open, the SDK will handle the notification and display it in a popup window. When the notification list is presented by default the SDK will show the nearby Beacons/GPS To show the list of the pending notification instead set this flag to YES. By default, it is set to NO.
property -
enableDefaultARViewOpeningMechanismWhen a content needing the AR view to be opened is triggered, usually due to a beacon event, the app needs to open the AR view. By default, the SDK takes care of that. It opens the AR view if not already opened, or display the content directly if the AR view is open.
property -
cloudRecognitionLanguageDefines the language that must be used for the online recognition. If it is not set, the device language must be used.
property -
– application:didRegisterForRemoteNotificationsWithDeviceToken:Tell the PixLive SDK that the remote notification request has succeeded. The app delegate has to call this method when such an event is received.
-
– application:didFailToRegisterForRemoteNotificationsWithError:Tell the PixLive SDK that the remote notification request has failed. The app delegate has to call this method when such an event is received.
-
– application:didReceiveRemoteNotification:Tell the PixLive SDK that a remote notification has been received. The app delegate has to call this method when such an event is received.
-
– setEnablePendingNotifications:enable pending notifications
-
– presentLastNotificationPresent the last notification to the user
-
– presentNotificationsListPresent the in-SDK notification list to the user
-
– presentNearbyListPresent the in-SDK notification list to the user with nearby GPS points
-
– presentNearbyListForLat:lon:Present the in-SDK notification list to the user with nearby GPS points
-
– refreshNearbyListForLat:lon:Present the in-SDK notification list to the user with nearby GPS points
Geo Points
-
– isContainingGPSPointsReturn YES if the app contain GPS points, NO otherwise
-
– computeDistanceBetweenGPSPointsOfLat1:lon1:lat2:lon2:The distance bewteen to GPS points in meter
-
– getNearbyGPSPointsfromLat:lon:The list of nearby GPS points
-
– getGPSPointsInBoundingBoxOfMinLat:minLon:maxLat:maxLon:The list of GPS points in BoundingBox
Beacons
-
– isContainingBeaconsReturn YES if the app contain beacons, NO otherwise
-
– getNearbyBeaconsReturn the list of context IDs of nearby beacons.
-
– setEnableNearbyRequirementDialog:Enables/disables the nearby requirement dialog asking for bluetooth/localisation requirement If enabled, a dialog will ask the user to enabled the required settings for bluetooth and localisation when the SDK start to scan for beacons. By default, this is enabled.
-
– getNearbyStatusReturn localization authorization status and bluetooth status
Bookmarks
-
enableBookmarksDefines whether the application should display a button for adding a bookmark when some content is displayed (content with web view {@link VDARModalWebView}).
property -
bookmarksThe list of context IDs that have been bookmarked so far.
property -
– addBookmark:Add a bookmark for the specified context
-
– removeBookmark:Remove the bookmark for the specified context
-
– isBookmarked:Return YES if the context identified by contextId is already bookmarked, NO otherwise
Initialization methods
-
+ sharedInstanceReturn the shared instance of the VDARSDKController.
-
+ startSDK:withLicenseKey:Start the shared instance of the VDARSDKController. Calling it twice will return nil.
Other methods
-
– setDeviceOrientation:Set the current device orientation. This is necessery to be able to recognize images when the device is not in portrait mode.
-
– releaseMemory:Release the memory used by not-detected-but-loaded contexts. Level is for future use.
-
– saveSave the contexts and DB to disk.
-
– openURLInInternalBrowser:Open the given URL in the internal browser embedded in the SDK (instead of opening up the device browser and switiching applications).
-
– previewContext:completionBlock:The preview of the passed context is shown. The context image has to be loaded from the network, therefore the completion block can be used in order to know when the fetch is completed and the preview is started.
-
– unloadAllThis method will force the system to stop and hide anything displayed in the AR view such as context, content or annotations.
-
+ VDARSDKVersionReturn a string describing the VDARSDK version.
-
+ isCapableOfRunningVDARSDKReturn YES if the current device can run the Vidinoti AR SDK.
-
+ platformTypeReturn the device type on which the SDK is running.
-
– setVisionContext:ignored:Disables or enables a vision context. If the vision context is ignored, it won’t be recognized, even if it is present locally on the device. By default, all vision contexts are enabled (i.e. not ignored)
-
– removeContext:Unloads and removes the context.
-
– disableContext:Disables the context. The context remains local but won’t be detected (its sensors are unregistered)
-
– enableContext:Enables the context after being disabled (see disableContext).
-
– disableContextsDisables all the contexts. The context remains on the device but their sensors are unregistered.
-
– enableContextsWithTags:Enables all contexts belonging to specific tags. Ensure that the mapping Context <–> Tag exists otherwise no context will be enabled. The mapping Context-Tag must be retrieved using the VDARRemoteController
-
– setLicenseKey:Allows changing the license key when the SDK is already running. The new license key will be validated against the server.
-
– forceLanguage:Sets the language of the SDK interface. By default, the SDK uses the phone language. If this method is called, it uses the given language instead. Call this method with null, for cancelling the forced language.
Properties
afterLoadingQueue
The Context DB is loaded asynchronously at startup and therefore might not be available immediatly. This can known when a given function (add or remove) returns an error or by checking the appropriate property. In order to execute those operation when the DB is loaded, the operations can be added to the queue represented by this property.
@property (nonatomic, readonly) NSOperationQueue *afterLoadingQueueDiscussion
The Context DB is loaded asynchronously at startup and therefore might not be available immediatly. This can known when a given function (add or remove) returns an error or by checking the appropriate property. In order to execute those operation when the DB is loaded, the operations can be added to the queue represented by this property.
Once the DB is loaded, this property is not longer valid (set to nil).
See Also
Declared In
VDARSDKController.havailableContextIDs
The id of all available contexts.
@property (nonatomic, readonly) NSArray *availableContextIDsAvailability
Version 5.1.0
Discussion
The id of all available contexts.
An available context is defined as a context that is triggered by some sensors (i.e. a beacon) but that its content is not (yet) displayed on screen and require user approval to display it on screen.
Declared In
VDARSDKController.hbookmarks
The list of context IDs that have been bookmarked so far.
@property (nonatomic, readonly) NSArray<NSString*> *bookmarksAvailability
Version 5.2.5
Discussion
The list of context IDs that have been bookmarked so far.
Declared In
VDARSDKController.hcloudRecognitionLanguage
Defines the language that must be used for the online recognition. If it is not set, the device language must be used.
@property (nonatomic, retain) NSString *cloudRecognitionLanguageAvailability
Version 6.??
Discussion
Defines the language that must be used for the online recognition. If it is not set, the device language must be used.
Declared In
VDARSDKController.hcontextIDs
The id of all contexts
@property (nonatomic, readonly) NSArray *contextIDsAvailability
Version 5.0.0
Discussion
The id of all contexts
Declared In
VDARSDKController.hdbLoaded
Defines whether or not the local Context DB is loaded or not. Any call related to the DB will fail if this property is not set to YES.
@property (nonatomic, readonly) BOOL dbLoadedDiscussion
Defines whether or not the local Context DB is loaded or not. Any call related to the DB will fail if this property is not set to YES.
Declared In
VDARSDKController.hdetectionDelegates
Context detection delegates.
@property (nonatomic, readonly) NSMutableArray<NSObject<VDARSDKControllerDelegate> *> *detectionDelegatesDiscussion
Context detection delegates.
Declared In
VDARSDKController.hdeviceUUID
The user device UUID
@property (nonatomic, readonly) NSString *deviceUUIDAvailability
Version 5.2.0
Discussion
The user device UUID
Declared In
VDARSDKController.hdisplayModelDebugOverlay
Display the debug overlay to locate the context properly even if the context has no annotation.
@property (nonatomic) BOOL displayModelDebugOverlayReturn Value
YES if the debug overlay is rendered, NO otherwise.
Availability
Version 2.0.0b2
Discussion
Display the debug overlay to locate the context properly even if the context has no annotation.
Declared In
VDARSDKController.henableBookmarks
Defines whether the application should display a button for adding a bookmark when some content is displayed (content with web view {@link VDARModalWebView}).
@property (nonatomic, getter=isBookmarksEnabled) BOOL enableBookmarksAvailability
Version 5.2.5
Discussion
Defines whether the application should display a button for adding a bookmark when some content is displayed (content with web view {@link VDARModalWebView}).
For content within the AR view, it is up to the application developper to implement it.
Declared In
VDARSDKController.henableCodesRecognition
When set to YES, code recognition is also performed while trying to recognize a VDARContext.
@property (nonatomic) BOOL enableCodesRecognitionAvailability
Version 1.1.0beta r230
Discussion
When set to YES, code recognition is also performed while trying to recognize a VDARContext.
Code recognition allows you to recognize different type of codes (1-D codes such as a barcodes or 2D codes such as QR Codes). Those codes can contains any information they can support. When a code is detected, the codesDetected: method of all the VDARSDKController delegates is called with the detected codes represented as VDARCode objects. You can then use the returned objects to read the codes data and act upon it.
You can use the QR Code generator available in Vidinoti AR Manager under My Contents –> Code Generator to generate your own QR Codes.
Several different special QR Codes are understood by the system. Those special QR codes actually contain a special URL. To be understood correctly, this special URL has to be of the following format:
vdarsdk://<command>/<parameter 1>/.../<parameter n>
The following commands are supported:
- Context Download QR Code (command = mdl)
This special QR Code can trigger the download (a.k.a pre-fetch) of a VDARContext so that the VDARContext can be recognized afterhand. Those special QR codes should contains an URL of the following format:
vdarsdk://mdl/<your Context Remote ID>
For example, if you have a Context with the remote ID fsgdg4t3few, then you can create a QR code with this URL vdarsdk://mdl/fsgdg4t3few to autmatically trigger the download of the corresponding context.
- Tag synchrnoization request (command = tsc)
This special QR Code can trigger the synchronization request (a.k.a pre-fetch) of several VDARContext corresponding to a given or multiple tags. Those special QR codes should contains an URL of the following format:
vdarsdk://tsc/<tag 1>/<tag 2>/.../<tag n>
For example, if you want to synchronize the local AR DB with all the contexts having the tags hello and bye, then you can create a QR code with this URL vdarsdk://tsc/hello/bye to autmatically trigger the download of the corresponding contexts.
Note that the code recognition is automatically disabled when a VDARContext has been recognized and when it is tracked
You can customize which codes can be recognized with the recognizableCodes property.
See Also
Declared In
VDARSDKController.henableDefaultARViewOpeningMechanism
When a content needing the AR view to be opened is triggered, usually due to a beacon event, the app needs to open the AR view. By default, the SDK takes care of that. It opens the AR view if not already opened, or display the content directly if the AR view is open.
@property (nonatomic) BOOL enableDefaultARViewOpeningMechanismAvailability
Version 5.1.0
Discussion
When a content needing the AR view to be opened is triggered, usually due to a beacon event, the app needs to open the AR view. By default, the SDK takes care of that. It opens the AR view if not already opened, or display the content directly if the AR view is open.
You can prevent this functionnality by setting the flag to NO and implementing your own logic by listening to the VDARNotificationARViewRequested notification. An AR should be open as soon as the notification VDARNotificationARViewRequested is triggered.
By default, it is set to YES.
Declared In
VDARSDKController.henableDefaultNotificationController
When a notification arrives in a state where the application is open, the SDK will handle it and display an alert with the notification. You can disable this behaviour by setting this flag to NO. By default, it is set to YES.
@property (nonatomic) BOOL enableDefaultNotificationControllerAvailability
Version 5.1.0
Discussion
When a notification arrives in a state where the application is open, the SDK will handle it and display an alert with the notification. You can disable this behaviour by setting this flag to NO. By default, it is set to YES.
Declared In
VDARSDKController.henableNotifications
Enable push notifications support in the SDK.
@property (nonatomic, getter=isNotificationsEnabled) BOOL enableNotificationsAvailability
Version 3.1.0
Discussion
Enable push notifications support in the SDK.
If set to YES, the application delegate has to forward the correct calls to VDARSDKController. This can be done this way in your AppDelegate:
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken {
[[VDARSDKController sharedInstance] application:app didRegisterForRemoteNotificationsWithDeviceToken:devToken];
}
- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err {
[[VDARSDKController sharedInstance] application:app didFailToRegisterForRemoteNotificationsWithError:err];
}
- (void)application:(UIApplication *)app didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler {
[[VDARSDKController sharedInstance] application:app didReceiveRemoteNotification:userInfo];
handler(UIBackgroundFetchResultNoData);
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// ...Your initialization code...
// Enables the push notifications
[VDARSDKController sharedInstance].enableNotifications=YES;
// Forward the push notification if the application was not running when the notification has been received
[[VDARSDKController sharedInstance] application:application didReceiveRemoteNotification:launchOptions];
return YES;
}
By default, the value is NO.
Declared In
VDARSDKController.henablePendingNotifications
When a beacon notification arrives in a state where the application is open, the SDK will handle the notification and display it in a popup window. When the notification list is presented by default the SDK will show the nearby Beacons/GPS To show the list of the pending notification instead set this flag to YES. By default, it is set to NO.
@property (nonatomic) BOOL enablePendingNotificationsAvailability
Version 5.3.0
Discussion
When a beacon notification arrives in a state where the application is open, the SDK will handle the notification and display it in a popup window. When the notification list is presented by default the SDK will show the nearby Beacons/GPS To show the list of the pending notification instead set this flag to YES. By default, it is set to NO.
Declared In
VDARSDKController.himageSender
The image sender which will send frame to the system. This is needed starting from version 2.0.11b
@property (nonatomic, retain) NSObject<VDARImageSender> *imageSenderAvailability
Version 2.0.11b
Discussion
The image sender which will send frame to the system. This is needed starting from version 2.0.11b
Declared In
VDARSDKController.hinternalBrowserClassName
Set the class to be instancied when the internal browser should be opened.
@property (nonatomic, copy) NSString *internalBrowserClassNameAvailability
Version 2.1.1
Discussion
Set the class to be instancied when the internal browser should be opened.
This is set by default to nil, which corresponds to the default internal browser provided by the SDK.
Declared In
VDARSDKController.hmodelsDBDirectory
The Context DB directory where all the data is stored.
@property (nonatomic, readonly) NSString *modelsDBDirectoryDiscussion
The Context DB directory where all the data is stored.
Declared In
VDARSDKController.hpendingNotifications
The list of all notifications that are pending.
@property (nonatomic, readonly) NSArray *pendingNotificationsAvailability
Version 5.1.0
Discussion
The list of all notifications that are pending.
Declared In
VDARSDKController.hpreventNotifications
Prevent spurious notifications to be displayed.
@property (nonatomic) BOOL preventNotificationsAvailability
Version 5.1.0
Discussion
Prevent spurious notifications to be displayed.
When set to YES, the notification list will never appear. Instead, the notification will be buffered and will be displayed as soon as the flag goes back to NO.
Declared In
VDARSDKController.hrecognizableCodes
Select which types of codes should be recognized by the system.
@property (nonatomic) VDARCodeType recognizableCodesDiscussion
Select which types of codes should be recognized by the system.
This variable should be an OR'ed mask of the constant defined in VDARCodeType. The mask can be built with the following values:
- VDAR_CODE_TYPE_EAN2 = GS1 2-digit add-on
- VDAR_CODE_TYPE_EAN5 = GS1 5-digit add-on
- VDAR_CODE_TYPE_EAN8 = EAN-8
- VDAR_CODE_TYPE_UPCE = UPC-E
- VDAR_CODE_TYPE_ISBN10 = ISBN-10 (from EAN-13).
- VDAR_CODE_TYPE_UPCA = UPC-A
- VDAR_CODE_TYPE_EAN13 = EAN-13
- VDAR_CODE_TYPE_ISBN13 = ISBN-13 (from EAN-13).
- VDAR_CODE_TYPE_COMPOSITE = EAN/UPC composite
- VDAR_CODE_TYPE_I25 = Interleaved 2 of 5.
- VDAR_CODE_TYPE_CODE39 = Code 39.
- VDAR_CODE_TYPE_QRCODE = QR Code.
By default, the enabled codes when enableCodesRecognition is set to YES are QR Codes.
Warning: The more codes you enable, the slower the overall recognition will be.
Declared In
VDARSDKController.hClass Methods
VDARSDKVersion
Return a string describing the VDARSDK version.
+ (NSString *)VDARSDKVersionReturn Value
A string uniquely identifying the version of this VDARSDK instance
Availability
Version 1.0.1rc1 r160
Discussion
Return a string describing the VDARSDK version.
Declared In
VDARSDKController.hisCapableOfRunningVDARSDK
Return YES if the current device can run the Vidinoti AR SDK.
+ (BOOL)isCapableOfRunningVDARSDKReturn Value
YES if the device is supported, NO otherwise.
Availability
Version 2.0.0GM
Discussion
Return YES if the current device can run the Vidinoti AR SDK.
You should call this method before attempting to start the VDARSDKController, otherwise it might result in crashes.
Declared In
VDARSDKController.hplatformType
Return the device type on which the SDK is running.
+ (UIDevicePlatform)platformTypeReturn Value
The type of device represented as a UIDevicePlatform on which the SDK is running.
Availability
Version 2.1.2
Discussion
Return the device type on which the SDK is running.
Declared In
VDARSDKController.hsharedInstance
Return the shared instance of the VDARSDKController.
+ (instancetype)sharedInstanceReturn Value
the shared instance of the VDARSDKController
Availability
5.0.0
Discussion
Return the shared instance of the VDARSDKController.
Warning: The VDARSDKController should have been already started using [VDARSDKController startSDK:withLicenseKey:] method.
See Also
Declared In
VDARSDKController.hstartSDK:withLicenseKey:
Start the shared instance of the VDARSDKController. Calling it twice will return nil.
+ (instancetype)startSDK:(NSString *)modelDBDir withLicenseKey:(NSString *)licenseKeyParameters
- modelDBDir
The directory in which all the contexts and the context DB will be stored. Should be a user-writable directory (it will be created if it does not yet exists)
- licenseKey
The API License key generate by Vidinoti AR Manager. Get it from https://armanager.vidinoti.com by logging in into your account.
Return Value
The VDARSDKController instance if the initilization happened correctly, nil otherwise.
Availability
Version 3.2.0
Discussion
Start the shared instance of the VDARSDKController. Calling it twice will return nil.
Declared In
VDARSDKController.hInstance Methods
addBookmark:
Add a bookmark for the specified context
- (void)addBookmark:(NSString *)contextIdParameters
- contextId
The ID of the Context to add a bookmark for
Availability
Version 5.2.5
Discussion
Add a bookmark for the specified context
Declared In
VDARSDKController.happlication:didFailToRegisterForRemoteNotificationsWithError:
Tell the PixLive SDK that the remote notification request has failed. The app delegate has to call this method when such an event is received.
- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)errParameters
- app
The app triggering the event
- err
The error explaining the failure
Availability
Version 3.1.0
Discussion
Tell the PixLive SDK that the remote notification request has failed. The app delegate has to call this method when such an event is received.
Declared In
VDARSDKController.happlication:didReceiveRemoteNotification:
Tell the PixLive SDK that a remote notification has been received. The app delegate has to call this method when such an event is received.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfoParameters
- application
The app triggering the event
- userInfo
The notification content. It is mandatory to pass this parameter.
Availability
Version 3.1.0
Discussion
Tell the PixLive SDK that a remote notification has been received. The app delegate has to call this method when such an event is received.
Warning: If your app delegate implements the application:didReceiveRemoteNotification:fetchCompletionHandler: method, you should call [VDARSDKController application:didReceiveRemoteNotification:] within this method instead in the fetchCompletion less one.
Declared In
VDARSDKController.happlication:didRegisterForRemoteNotificationsWithDeviceToken:
Tell the PixLive SDK that the remote notification request has succeeded. The app delegate has to call this method when such an event is received.
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devTokenParameters
- app
The app triggering the event
- devToken
The token for notification registration
Availability
Version 3.1.0
Discussion
Tell the PixLive SDK that the remote notification request has succeeded. The app delegate has to call this method when such an event is received.
Declared In
VDARSDKController.hcomputeDistanceBetweenGPSPointsOfLat1:lon1:lat2:lon2:
The distance bewteen to GPS points in meter
- (float)computeDistanceBetweenGPSPointsOfLat1:(float)lat1 lon1:(float)lon1 lat2:(float)lat2 lon2:(float)lon2Parameters
- lat1
latitude of point 1
- lon1
longitude of point 1
- lat2
latitude of point 2
- lon2
longitude of point 2
Availability
Version 5.3.0
Discussion
The distance bewteen to GPS points in meter
Declared In
VDARSDKController.hdisableContext:
Disables the context. The context remains local but won’t be detected (its sensors are unregistered)
- (void)disableContext:(NSString *)contextIdParameters
- contextId
The id of context to disable.
Availability
Version 6.5.12
Discussion
Disables the context. The context remains local but won’t be detected (its sensors are unregistered)
Declared In
VDARSDKController.hdisableContexts
Disables all the contexts. The context remains on the device but their sensors are unregistered.
- (void)disableContextsAvailability
Version 6.5.12
Discussion
Disables all the contexts. The context remains on the device but their sensors are unregistered.
Declared In
VDARSDKController.henableContext:
Enables the context after being disabled (see disableContext).
- (void)enableContext:(NSString *)contextIdParameters
- contextId
The id of context to enable.
Availability
Version 6.5.12
Discussion
Enables the context after being disabled (see disableContext).
Declared In
VDARSDKController.henableContextsWithTags:
Enables all contexts belonging to specific tags. Ensure that the mapping Context <–> Tag exists otherwise no context will be enabled. The mapping Context-Tag must be retrieved using the VDARRemoteController
- (void)enableContextsWithTags:(NSArray *)tagsParameters
- tags
a list of tag names. The context to enable must have all of the given tags (logical AND)
Discussion
Enables all contexts belonging to specific tags. Ensure that the mapping Context <–> Tag exists otherwise no context will be enabled. The mapping Context-Tag must be retrieved using the VDARRemoteController
Declared In
VDARSDKController.hforceLanguage:
Sets the language of the SDK interface. By default, the SDK uses the phone language. If this method is called, it uses the given language instead. Call this method with null, for cancelling the forced language.
- (void)forceLanguage:(NSString *)languageCodeParameters
- languageCode
the language code (2 lowercase characters, e.g. “fr”)
Discussion
Sets the language of the SDK interface. By default, the SDK uses the phone language. If this method is called, it uses the given language instead. Call this method with null, for cancelling the forced language.
Declared In
VDARSDKController.hgetContext:
Get the context of a given id
- (VDARContext *)getContext:(NSString *)remoteIDParameters
- remoteID
remote ID of the context
Return Value
Availability
Version 5.0.0
Discussion
Get the context of a given id
Declared In
VDARSDKController.hgetGPSPointsInBoundingBoxOfMinLat:minLon:maxLat:maxLon:
The list of GPS points in BoundingBox
- (NSArray<VDARGPSPoint*> *)getGPSPointsInBoundingBoxOfMinLat:(float)minLat minLon:(float)minLon maxLat:(float)maxLat maxLon:(float)maxLonParameters
- minLat
latitude of the lower left corner
- minLon
longitude of the lower left corner
- maxLat
latitude of the uper right corner
- maxLon
longitude of the uper right corner
Availability
Version 5.3.0
Discussion
The list of GPS points in BoundingBox
Declared In
VDARSDKController.hgetNearbyBeacons
Return the list of context IDs of nearby beacons.
- (NSArray<NSString*> *)getNearbyBeaconsAvailability
Version 5.3.0
Discussion
Return the list of context IDs of nearby beacons.
Declared In
VDARSDKController.hgetNearbyGPSPointsfromLat:lon:
The list of nearby GPS points
- (NSArray<VDARGPSPoint*> *)getNearbyGPSPointsfromLat:(float)myLat lon:(float)myLonParameters
- myLat
current latitude
- myLon
current longitude
Availability
Version 5.3.0
Discussion
The list of nearby GPS points
Declared In
VDARSDKController.hgetNearbyStatus
Return localization authorization status and bluetooth status
- (NSDictionary *)getNearbyStatusReturn Value
NSDictinary with keys @“authorizationStatus” (@“unknow”,@“disabled”,@“enabled”,@“enabled_in_use”) and @“bluetoothStatus” (@“unknow”,@“disabled”,@“unsupported”,@“enabled”)
Availability
Version 5.3.0
Discussion
Return localization authorization status and bluetooth status
Declared In
VDARSDKController.hisBookmarked:
Return YES if the context identified by contextId is already bookmarked, NO otherwise
- (BOOL)isBookmarked:(NSString *)contextIdReturn Value
YES if already bookmarked, NO otherwise
Availability
Version 5.2.5
Discussion
Return YES if the context identified by contextId is already bookmarked, NO otherwise
Declared In
VDARSDKController.hisContainingBeacons
Return YES if the app contain beacons, NO otherwise
- (BOOL)isContainingBeaconsReturn Value
YES if the app contain beacons, NO otherwise
Availability
Version 6.0.0
Discussion
Return YES if the app contain beacons, NO otherwise
Declared In
VDARSDKController.hisContainingGPSPoints
Return YES if the app contain GPS points, NO otherwise
- (BOOL)isContainingGPSPointsReturn Value
YES if the app contain GPS points, NO otherwise
Availability
Version 5.3.0
Discussion
Return YES if the app contain GPS points, NO otherwise
Declared In
VDARSDKController.hloadContext:
Load the context of a given id
- (BOOL)loadContext:(NSString *)remoteIDParameters
- remoteID
remote ID of the context
Return Value
YES if the context is successfully loaded
Availability
Version 5.0.0
Discussion
Load the context of a given id
Declared In
VDARSDKController.hopenURLInInternalBrowser:
Open the given URL in the internal browser embedded in the SDK (instead of opening up the device browser and switiching applications).
- (void)openURLInInternalBrowser:(NSURL *)urlParameters
- url
The URL to open in the internal browser
Availability
Version 2.0.2
Discussion
Open the given URL in the internal browser embedded in the SDK (instead of opening up the device browser and switiching applications).
Declared In
VDARSDKController.hpresentLastNotification
Present the last notification to the user
- (void)presentLastNotificationAvailability
Version 5.3.0
Discussion
Present the last notification to the user
Declared In
VDARSDKController.hpresentNearbyList
Present the in-SDK notification list to the user with nearby GPS points
- (void)presentNearbyListAvailability
Version 5.3.0
Discussion
Present the in-SDK notification list to the user with nearby GPS points
Declared In
VDARSDKController.hpresentNearbyListForLat:lon:
Present the in-SDK notification list to the user with nearby GPS points
- (void)presentNearbyListForLat:(float)myLat lon:(float)myLonAvailability
Version 5.3.0
Discussion
Present the in-SDK notification list to the user with nearby GPS points
Declared In
VDARSDKController.hpresentNotificationsList
Present the in-SDK notification list to the user
- (void)presentNotificationsListAvailability
Version 5.1.0
Discussion
Present the in-SDK notification list to the user
Declared In
VDARSDKController.hpreviewContext:completionBlock:
The preview of the passed context is shown. The context image has to be loaded from the network, therefore the completion block can be used in order to know when the fetch is completed and the preview is started.
- (BOOL)previewContext:(NSString *)contextId completionBlock:(void ( ^ ) ( BOOL err ))completionParameters
- contextId
The id of context to preview or nil to stop the currently playing preview.
- completion
The block that will be called when the preview is started. Can be nil.
Return Value
YES in case of succcess, NO otherwise.
Availability
Version 5.0
Discussion
The preview of the passed context is shown. The context image has to be loaded from the network, therefore the completion block can be used in order to know when the fetch is completed and the preview is started.
Pass nil for the context argument to stop the preview.
Declared In
VDARSDKController.hrefreshNearbyListForLat:lon:
Present the in-SDK notification list to the user with nearby GPS points
- (void)refreshNearbyListForLat:(float)myLat lon:(float)myLonAvailability
Version 5.3.0
Discussion
Present the in-SDK notification list to the user with nearby GPS points
Declared In
VDARSDKController.hreleaseMemory:
Release the memory used by not-detected-but-loaded contexts. Level is for future use.
- (void)releaseMemory:(int)levelParameters
- level
Pass 2 to this parameter. Reserved for future use.
Availability
Version 1.0beta r85
Discussion
Release the memory used by not-detected-but-loaded contexts. Level is for future use.
Declared In
VDARSDKController.hremoveBookmark:
Remove the bookmark for the specified context
- (void)removeBookmark:(NSString *)contextIdParameters
- contextId
The ID of the Context to remove the bookmark for
Availability
Version 5.2.5
Discussion
Remove the bookmark for the specified context
Declared In
VDARSDKController.hremoveContext:
Unloads and removes the context.
- (void)removeContext:(NSString *)contextIdParameters
- contextId
The id of context to remove.
Availability
Version 6.1.5
Discussion
Unloads and removes the context.
Declared In
VDARSDKController.hsave
Save the contexts and DB to disk.
- (void)saveAvailability
Version 1.0beta r85
Discussion
Save the contexts and DB to disk.
This method generate a VDARNotificationContextListChanged notification if changes have been made to the DB and saved to disk.
Declared In
VDARSDKController.hsetDeviceOrientation:
Set the current device orientation. This is necessery to be able to recognize images when the device is not in portrait mode.
- (void)setDeviceOrientation:(UIDeviceOrientation)dParameters
- d
The orientation of the device.
Availability
Version 2.0.0beta r251
Discussion
Set the current device orientation. This is necessery to be able to recognize images when the device is not in portrait mode.
Declared In
VDARSDKController.hsetEnableNearbyRequirementDialog:
Enables/disables the nearby requirement dialog asking for bluetooth/localisation requirement If enabled, a dialog will ask the user to enabled the required settings for bluetooth and localisation when the SDK start to scan for beacons. By default, this is enabled.
- (void)setEnableNearbyRequirementDialog:(BOOL)nearbyRequirementDialogEnabledParameters
- {BOOL}nearbyRequirementDialogEnabled
true for enabling the dialog, false otherwise
Availability
Version 6.0.0
Discussion
Enables/disables the nearby requirement dialog asking for bluetooth/localisation requirement If enabled, a dialog will ask the user to enabled the required settings for bluetooth and localisation when the SDK start to scan for beacons. By default, this is enabled.
Declared In
VDARSDKController.hsetEnablePendingNotifications:
enable pending notifications
- (void)setEnablePendingNotifications:(BOOL)pendingNotificationsEnabledParameters
- {BOOL}pendingNotificationsEnabled
true to enable pending notification mode
Availability
Version 5.3.0
Discussion
enable pending notifications
Declared In
VDARSDKController.hsetLicenseKey:
Allows changing the license key when the SDK is already running. The new license key will be validated against the server.
- (void)setLicenseKey:(NSString *)licenseKeyParameters
- licenseKey
the new license key.
Discussion
Allows changing the license key when the SDK is already running. The new license key will be validated against the server.
Declared In
VDARSDKController.hsetVisionContext:ignored:
Disables or enables a vision context. If the vision context is ignored, it won’t be recognized, even if it is present locally on the device. By default, all vision contexts are enabled (i.e. not ignored)
- (void)setVisionContext:(NSString *)contextId ignored:(BOOL)ignoredAvailability
Version 6.1.4
Discussion
Disables or enables a vision context. If the vision context is ignored, it won’t be recognized, even if it is present locally on the device. By default, all vision contexts are enabled (i.e. not ignored)
Declared In
VDARSDKController.hunloadAll
This method will force the system to stop and hide anything displayed in the AR view such as context, content or annotations.
- (void)unloadAllAvailability
Version 5.2.5
Discussion
This method will force the system to stop and hide anything displayed in the AR view such as context, content or annotations.
Declared In
VDARSDKController.h