iOS SDK  3.5.0.104555
 All Classes Files Functions Variables Properties Macros Pages
Class Methods | List of all members
AsperaMobile Class Reference

#import <AsperaMobileClass.h>

Inherits NSObject.

Class Methods

(BOOL) + initialized
 
(BOOL) + initializeWithLogLevel:error:
 
(void) + setLogFilePath:
 
(void) + setLogFilePathRelativeToDocumentsDirectory:
 
(NSString *) + logFilePath
 
(NSArray *) + logFiles
 
(void) + allowLoggingToStdout:
 
(void) + setFaspLogLevel:
 
(void) + setPrivateKeyRootDirectory:
 
(NSString *) + privateKeyRootDirectory
 

Detailed Description

General interface to the SDK, used for initialization

Method Documentation

+ (void) allowLoggingToStdout: (BOOL)  allow

Enables/disables SDK logging to stdout (enabled by default). The log files will still be written to when logging to stdout is disabled.

+ (BOOL) initialized

Returns true if FASP has been successfully initialized

+ (BOOL) initializeWithLogLevel: (ASLogLevel)  logLevel
error: (NSError **)  error 

Initialize FASP with the given log level. Use 0 for production, 1 or 2 to see increased debug logging

+ (NSString *) logFilePath

Returns the full path to the log file used by the SDK

+ (NSArray *) logFiles

Returns an array containing absolute paths to the log files used by the SDK. A multiplicity of log files may result from log rotation

+ (NSString *) privateKeyRootDirectory

A directory with respect to which relative values of ASAccount::privateKeyFilename and ASAccount::publicKeyFilename are interpreted. The default value is the main application's bundle path. If a private key is bundled with the application, the default value can be used and the private/public key filenames set for ASAccount instances can be simple filenames (no directories). If private keys are stored elsewhere in the application, the key root directory should be set to an absolute path common to all key locations, and public/private key filenames for ASAccount instances should be relative to this key root directory. (This value is not persisted and if it is set should be set once at the beginning of application initialization.)

+ (void) setFaspLogLevel: (int)  level

Set logging for the low-level fasp routines.

+ (void) setLogFilePath: (NSString *)  logFilePath

Set the path to the file that the SDK should use for logging. This method must be called prior to initialization if it is to have any effect. The default path is APP_ROOT/Library/Application Support/aspera.ios.log

+ (void) setLogFilePathRelativeToDocumentsDirectory: (NSString *)  rel_path

Convenience method for setting the log file path relative to the application's documents directory. This method must be called prior to initialization if it is to have any effect

+ (void) setPrivateKeyRootDirectory: (NSString *)  keyDir

Sets the private key root directory. See privateKeyRootDirectory for more information.


The documentation for this class was generated from the following files: