AppInfo

Objective-C

@interface AppInfo : NSObject

Swift

class AppInfo : NSObject

A class which represents the Info of the host app. Must needed for accessing APIManager

  • Name of the app, contact customer support to get the correct app name

    Declaration

    Objective-C

    @property (strong, readonly) NSString *appName;

    Swift

    var appName: String! { get }
  • App version with build number

    Note

    example v1.2.0 (909)

    Declaration

    Objective-C

    @property (strong, readonly) NSString *appVersion;

    Swift

    var appVersion: String! { get }
  • To setup app info class with app name and version which can be used in APIManager when contacting Scantrust backend API’s

    Declaration

    Objective-C

    + (AppInfo *)setupAppInfoWithName:(NSString *)appName
                              version:(NSString *)version;

    Swift

    class func setupAppInfo(withName appName: String!, version: String!) -> AppInfo!

    Parameters

    appName

    Predefined name of the app

    version

    app version