StorageType Class

Header: \#include "easyar/storage.hpp"


StorageType represents where the images, jsons, videos or other files are located.

StorageType specifies the root path, in all interfaces, you can use relative path relative to the root path.

enum StorageType

Constant Value Description
kStorageApp 0 The app path.
Android: the application's persistent data directory
iOS: the application's sandbox directory
Windows: the application's executable directory
Mac: the application's executable directory (if app is a bundle, this path is inside the bundle)
kStorageAssets 1 The assets path.
Android: assets directory (inside apk)
iOS: the application's executable directory
Windows: EasyAR.dll directory
Mac: libEasyAR.dylib directory
Note: this path is different if you are using Unity3D. It will point to the StreamingAssets folder.
kStorageAbsolute 2 The absolute path or url.
kStorageJson 1 << 8 The flag for json string, used in Target::load

results matching ""

    No results matching ""