Class NCResourceManager - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki

NCResourceManager class is used for working with images, user files and events.

Referenced from: NCNavigineSdk.

Public methods

Function loadImage

- (void)loadImage:(nonnull NSString *)imageId
         listener:(nullable id<NCResourceListener>)listener;

Function is used for loading image from storage using its id and resource listener callback, where you will get loaded image.

Parameters

Function publishUserEvent

- (nonnull NSString *)publishUserEvent:(nonnull NSString *)content;

Function is used for uploading user message to the server and returns randomly generated tag using which you can find your uploaded message.

Parameters
  • userEvent — users' message which will be uploaded to the server.
Return value

Returns randomly generated tag associated with your message and using which you can find your message on server.

Function uploadUserFile

- (void)uploadUserFile:(nonnull NSString *)filePath
              listener:(nullable id<NCResourceUploadListener>)listener;

Function is used for uploading user file to the server and will notify in listener about upload status. Size of file should be less than 10 MB.

Parameters

Function getLogsList

- (nonnull NSArray<NSString *> *)getLogsList;

Function is used for getting the names of log files recorded using NCNavigationManager.

Return value

Returns the list of log files names.

Function removeLogFile

- (void)removeLogFile:(nonnull NSString *)fileName;

Function is used for removing the log by name.

Parameters
  • fileName — name of the log file.

Function uploadLogFile

- (void)uploadLogFile:(nonnull NSString *)fileName
             listener:(nullable id<NCResourceUploadListener>)listener;

Function is used for uploading log file to the server and will notify about loading status using the provided listener.

Parameters
⚠️ **GitHub.com Fallback** ⚠️