Inherits from NSObject
Declared in ComplianceReport.h

Tasks

Properties

appVersion

The version of the host application

@property (nonatomic, strong) NSString *appVersion

Discussion

This value is pulled from the host applications CFBundle.

Declared In

ComplianceReport.h

complianceChecks

An array of ComplianceCheck objects

@property (nonatomic, strong) NSMutableArray *complianceChecks

Discussion

The report is comprised of multiple checks which are contained in this array in no particular order.

Declared In

ComplianceReport.h

compliant

A boolean defining overall compliance

@property (nonatomic, strong) NSNumber *compliant

Discussion

An NSNumber containing a boolean that represents whether or not the current report is compliant. If any of the complianceChecks failed the compliance test this value will be false, otherwise, it will be true, verifying overall compliance.

Declared In

ComplianceReport.h

device

The unique identifier of the device

@property (nonatomic, strong) NSString *device

Discussion

This value will relfect the unique identifier the current device is referenced as within our system. This will be the UDID of the device if under management or the vendor identifier if not enrolled or if enrolled without MDM.

Declared In

ComplianceReport.h

location

The location of the device

@property (nonatomic, strong) NSString *location

Discussion

Location services pinpoint the location of the device when running every report.

Declared In

ComplianceReport.h

osVersion

The operating system version of the current device

@property (nonatomic, strong) NSString *osVersion

Discussion

This value reflects the current operating system by quering the UIDevice singleton [UIDevice currentDevice].

Declared In

ComplianceReport.h

platform

The platform the report was run on

@property (nonatomic, strong) NSString *platform

Discussion

This value will always return “IOS”

Declared In

ComplianceReport.h

riskScore

The overall risk score of the report

@property (nonatomic, strong) NSNumber *riskScore

Discussion

The risk score is a sumation of each score on each ComplianceCheck found in the complianceChecks array.

Declared In

ComplianceReport.h

timestamp

The last time a report was run

@property (nonatomic, strong) NSDate *timestamp

Discussion

This timestamp will update each time a report is run.

Declared In

ComplianceReport.h

Class Methods

sharedInstance

A singleton for the most recent ComplianceReport

+ (id)sharedInstance

Discussion

Each automatic report is run on this singleton so it will contain the most recent report at any given time. By calling run on this singleton manually, the same will hold true.

Declared In

ComplianceReport.h

Instance Methods

run

A method to manually trigger a report

- (void)run

Discussion

Calling run will run a compliance report and report the results to the server tied to the enrolled user.

Declared In

ComplianceReport.h

runWithCompletionBlock:

A method to manually trigger a report with a callback

- (void)runWithCompletionBlock:(void ( ^ ) ( BOOL succeeded ))block

Discussion

Calling run will run a compliance report and report the results to the server tied to the enrolled user and then triggers the callback block to allow the developer to implement additional logic based on the results.

Declared In

ComplianceReport.h